Class plane¶
Defined in File geometry.hpp
Class Documentation¶
-
class
legion::core::math
::
plane
¶ Public Functions
-
inline
plane
(vec3 position, vec3 normal)¶
-
inline
plane
(vec3 p0, vec3 p1, vec3 p2)¶ Constructs a plane from three points on the plane.
Uses p0 for the plane position
Calculates a normal using math::cross
-
inline float
distanceToPoint
(const vec3 &p) const¶ Calculates the closest distance between point p and this plane.
-
inline