34 Plane(
float a,
float b,
float c,
float d);
50 void set(
float a,
float b,
float c,
float d);
The Matrix4f class is 4 X 4 matrix.
Definition matrix.h:226
The Plane class inherits from the Tuple class, specilizing the templated parameter to float for eleme...
Definition plane.h:30
const float & operator[](int index) const
Provides read-only access to the element at a specific index(position) within the Plane object.
void flip()
Flips the Plane normal direction by negating all coefficients.
Vector3f normal() const
Gets the normal of the Plane.
float & operator[](char key)
Provides read-write access to a element within the Plane object using a character key.
Plane()
Constructs a Plane object, all coefficients initialized to 0.
Plane(const Vector3f &origin, const Vector3f &normal)
Constructs a Plane objet using the point-normal equation A(x-x0) + B(y-y0) +C(z-z0) = 0,...
Vector3f project(const Vector3f &point) const
Calculates and returns the projected point of the argument point on the current Plane object.
void set(const Vector3f &origin, const Vector3f &normal)
Sets the coefficients of the Plane using the point-normal equation A(x-x0) + B(y-y0) +C(z-z0) = 0 of ...
Plane(float a, float b, float c, float d)
Constructs a Plane object and sets its coefficients with arguments (x, y, z, w).
float & operator[](int index)
Provides read-write access to the element at a specific index(position) within the Plane object.
void transform(const Matrix4f &other)
Transform the current Plane object using the other transformation matrix.
Vector3f origin() const
Gets the origin of the Plane.
Plane(const Plane &other)
const float & operator[](char key) const
Provides read-only access to a element within the Plane object using a character key.
void set(float a, float b, float c, float d)
Sets the coefficients of the Plane.
The Tuple is a templated class inheriting from the most basic class Variant.
Definition tuple.h:27
The class Vector3f inherits from the templated class of Vector3, and the template parameters are spec...
Definition vector.h:322