added constexpr

This commit is contained in:
2026-02-05 23:38:51 +03:00
parent ba23fee243
commit b10e26e6ba

View File

@@ -34,6 +34,7 @@ namespace omath::collision
class LineTracer final
{
using TriangleType = Triangle<typename RayType::VectorType>;
public:
LineTracer() = delete;
@@ -88,7 +89,7 @@ namespace omath::collision
template<class MeshType>
[[nodiscard]]
static auto get_ray_hit_point(const RayType& ray, const MeshType& mesh) noexcept
constexpr static auto get_ray_hit_point(const RayType& ray, const MeshType& mesh) noexcept
{
auto mesh_hit = ray.end;