Point::Transform
From Solid Graphics Wiki
| ||||||||||||
The Point::Transform method transforms the point object coordinates using given matrix parameter.
Point & Transform( const Matrix3x3f & matrix );
Point & Transform( const Matrix4x4f & matrix );
Parameters
| matrix | the matrix used to transform the point coordinates. |
Return value
The method returns reference to the point object itself.
Example
SKL3D::Matrix4x4f matrix; SKL3D::Point point( 1.0f, 2.0f, 3.0f ); matrix.Initialize(); matrix.RotateYXZ( 20.0f, 10.0f, 0.0f ); matrix.Translate( 5.0f, 5.0f, 5.0f ); point.Transform( matrix ); // this transforms the point using above matrix
See Also
