Matrix4x4::TransformHomogeneous

Matrix4x4::TransformHomogeneous
void TransformHomogeneous(Point3<T>* result, const Point3<T>& p) const;
Point3<T> TransformHomogeneous(const Point3<T>& p) const;
Description

TransformHomogeneous transforms the point by the matrix, and divide by the W component. The w is a 4th dimension that is necessary so that 3D matrix multiplication can be used on a 3D point.

Parameters
Parameters 
Description 
Point3<T>* result 
The result of the transformation by the matrix. 
const Point3<T>& p 
Reference to the three-dimensional point which is to be transformed. 
Return Value

A Point3 value containing the transformation result.