Matrix.TransformDirection

Vec3 TransformDirection(Vec3 direction)

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

Transforms a point through the Matrix, but excluding translation! This is great for transforming vectors that are -directions- rather than points in space. Use this to transform normals and directions. The same as multiplying (x,y,z,0) with the Matrix.