mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-12 22:53:27 +00:00
added constexpr
This commit is contained in:
@@ -34,6 +34,7 @@ namespace omath::collision
|
|||||||
class LineTracer final
|
class LineTracer final
|
||||||
{
|
{
|
||||||
using TriangleType = Triangle<typename RayType::VectorType>;
|
using TriangleType = Triangle<typename RayType::VectorType>;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LineTracer() = delete;
|
LineTracer() = delete;
|
||||||
|
|
||||||
@@ -88,7 +89,7 @@ namespace omath::collision
|
|||||||
|
|
||||||
template<class MeshType>
|
template<class MeshType>
|
||||||
[[nodiscard]]
|
[[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;
|
auto mesh_hit = ray.end;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user