Matrix.Transform

Vec3 Transform(Vec3 point)

   
Vec3 point The point to transform.
RETURNS: Vec3 The point transformed by the Matrix.

Transforms a point through the Matrix! This is basically just multiplying a vector (x,y,z,1) with the Matrix.

Ray Transform(Ray ray)

   
Ray ray A ray you wish to transform from one space to another.
RETURNS: Ray The transformed ray!

Shorthand to transform a ray though the Matrix! This properly transforms the position with the point transform method, and the direction with the direction transform method. Does not normalize, nor does it preserve a normalized direction if the Matrix contains scale data.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!