From Solid Graphics Wiki

Revision as of 03:00, 1 May 2008 by Rgrof (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
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 );


matrix the matrix used to transform the point coordinates.

Return value

The method returns reference to the point object itself.


SKL3D::Matrix4x4f matrix;
SKL3D::Point      point( 1.0f, 2.0f, 3.0f );

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