void setPoints(const Vec3 &_v1, const Vec3 &_v2, const Vec3 &_v3) noexcept
set the plane from 3 points
Real m_d
the co-efficient of the plane
Vec3 m_normal
the normal of the plane
~Plane() noexcept
dtor (not used)
Real inner(const Vec3 &_v) const noexcept
calculate the inner product of this vector and vector passed in
simple Vec3 encapsulates a 3 float object like glsl vec3 but not maths use the Vec3 class for maths a...
implementation files for RibExport class
a simple mathmatical representation of a plane
PRECISION Real
create a variable called Real which is the main data type we use (GLfloat for most cases) ...
void setNormalPoint(const Vec3 &_normal, const Vec3 &_point) noexcept
set the plane from a normal and a point
void set(Real _x, Real _y, Real _z) noexcept
sets the Vec3 component from 3 values
void setFloats(Real _a, Real _b, Real _c, Real _d) noexcept
set the plane from the co-efficients
Real length() const noexcept
returns the length of the vector
Real distance(const Vec3 &_p) const noexcept
get the distance from the point _p to the plane
Vec3 m_point
the point position of the normal / plane
void normalize() noexcept
Normalize the vector using .
void cross(const Vec3 &_v1, const Vec3 &_v2) noexcept
set the Vec3 as the cross product from 2 other Vec3
Plane() noexcept
default ctor