25 Plane::Plane (
float aNormalX,
float aNormalY,
float aNormalZ,
float aDistance ) : mNormal ( aNormalX, aNormalY, aNormalZ ), mDistance ( aDistance )
27 float length = sqrtf (
Dot ( mNormal, mNormal ) );
30 std::cout <<
LogLevel::Error <<
"Zero lenght normal passed to plane constructor." << std::endl;
31 throw std::runtime_error (
"Zero lenght normal passed to plane constructor." );
Inline functions related to 3D Math.
Header for the axis aligned bounding box class.
Defines log severity levels and stream output for the AeonGames engine.
Header for the plane class.
DLL const float & GetDistance() const
Get the distance from the origin to the plane.
DLL const Vector3 & GetNormal() const
Get the plane normal vector.
DLL Plane()
Default constructor.
<- This is here just for the literals
DLL const float Dot(const Vector3 &aLhs, const Vector3 &aRhs)
Compute the dot product of two vectors.