v1.1
 
Point3D Class Reference

Three-dimensional point. More...

Public Member Functions

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

Detailed Description

Three-dimensional point.

Member Function Documentation

◆ Rotate()

self Rotate ( Axis3D axis,
number angle )

Rotates the point.

Parameters
axisAxis of rotation.
angleThe angle in radians.

◆ Scale()

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

Scales the point.

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