The Matrix4f class is 4 X 4 matrix.
Definition matrix.h:226
The Ray class inherits from the Tuple class, specilizing the templated parameter to float for element...
Definition ray.h:29
Ray()
Constructs a Ray object, all elements initialized to 0.
Vector3f direction() const
Gets a Vector3f object that is the direction of the current Ray.
void transform(const Matrix4f &other)
Transform the current Ray object using the other transformation matrix.
Ray(const Vector3f &origin, const Vector3f &normal)
Constructs a Ray object using the origin point and the direction.
Vector3f project(const Vector3f &point) const
Gets the projected point of the other point on the current Ray.
float & operator[](int index)
Provides read-write access to the element at a specific index(position) within the Ray object.
Vector3f origin() const
Gets a Vector3f object that is the origin of the current Ray.
void set(const Vector3f &origin, const Vector3f &direction)
Sets the origin point and direction of the Ray object.
void setDirection(const Vector3f &direction)
Sets the direction ot the current Ray.
const float & operator[](int index) const
Provides read-only access to the element at a specific index(position) within the Ray object.
void setOrigin(const Vector3f &origin)
Sets the origin of the current Ray.
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