v1.1
 
Matrix3D Class Reference

The matrix of transformation in a three-dimensional space. More...

Public Member Functions

 Matrix3D ()
 Constructor.
 
self Shift (number x, number y, number z)
 Shifts the matrix.
 
self Rotate (Axis3D axis, number angle)
 Rotates the matrix.
 
self Scale (Point3D fixedPoint, number xScale, number yScale, number zScale)
 Scales the matrix.
 
self Transform (Matrix3D matrix)
 Transforms according to the matrix.
 
self Invert ()
 Inverts matrix.
 
Matrix3D Clone ()
 Returns a copy of the object.
 
boolean operator== (Matrix3D other)
 Checks for equality.
 
boolean operator~= (Matrix3D other)
 Checks for inequality.
 

Detailed Description

The matrix of transformation in a three-dimensional space.

Member Function Documentation

◆ Rotate()

self Rotate ( Axis3D axis,
number angle )

Rotates the matrix.

Parameters
axisAxis of rotation.
angleThe angle in radians.

◆ Scale()

self Scale ( Point3D fixedPoint,
number xScale,
number yScale,
number zScale )

Scales the matrix.

Parameters
fixedPointFixed point.
xScaleX scale coefficient.
yScaleY scale coefficient.
zScaleZ scale coefficient.