Matrix.TransformRay

Ray TransformRay(Ray aRay)

   
Ray aRay 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.