Point::Transform

From Solid Graphics Wiki

Jump to: navigation, search
Point::Transform
Namespace: SKL3D
Member of: Point class
Include: Skl3D.h
Lib (Release): SKL.lib
Lib (Debug): SKL_D.lib

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

   


SolidKit Library Documentation

Personal tools