Skip to content

ludus::foundation::math::ConeTriangleIntersection

Ludus Wiki · API overview · Browse API

Struct

Geometric cone/triangle range with axial roundoff padding; zero fields for a miss.

Declared in modules/foundation/math/include/ludus/foundation/math/elliptical_cone.hpp

#include <ludus/foundation/math/elliptical_cone.hpp>
struct ludus::foundation::math::ConeTriangleIntersection final

Fields

IsHit

bool ludus::foundation::math::ConeTriangleIntersection::IsHit = false
Whether the triangle and the closed conic frustum intersect.

Declared in modules/foundation/math/include/ludus/foundation/math/elliptical_cone.hpp

NearWorld

float64 ludus::foundation::math::ConeTriangleIntersection::NearWorld = 0
Lower axial distance, in metres, padded by eight working-scale epsilons and clipped; not radial distance.

Related types: float64

Declared in modules/foundation/math/include/ludus/foundation/math/elliptical_cone.hpp

FarWorld

float64 ludus::foundation::math::ConeTriangleIntersection::FarWorld = 0
Upper axial distance, in metres, with the same padding and clipping.

Related types: float64

Declared in modules/foundation/math/include/ludus/foundation/math/elliptical_cone.hpp

NearBarycentric

Vector3d ludus::foundation::math::ConeTriangleIntersection::NearBarycentric {}
Barycentric weights at the unpadded nearest candidate point, summing to one.

Related types: Vector3d

Declared in modules/foundation/math/include/ludus/foundation/math/elliptical_cone.hpp

FarBarycentric

Vector3d ludus::foundation::math::ConeTriangleIntersection::FarBarycentric {}
Barycentric weights at the unpadded farthest candidate point, summing to one.

Related types: Vector3d

Declared in modules/foundation/math/include/ludus/foundation/math/elliptical_cone.hpp