v1.1
 
Placement3D Class Reference

Local coordinate system in three dimensional space. More...

Public Member Functions

 Placement3D (Point3D point, Vector3D z_axis_direction, Vector3D x_axis_direction)
 Constructor by a point and two vectors.
 
self Shift (number x, number y, number z)
 Shifts the coordinate system.
 
self Rotate (Axis3D axis, number angle)
 Rotates the coordinate system.
 
self Scale (Point3D fixedPoint, number xScale, number yScale, number zScale)
 Scales the placement.
 
self Transform (Matrix3D matrix)
 Transform according to the matrix.
 
Placement3D Clone ()
 Returns a copy of the object.
 
Point3D GetOrigin ()
 Returns the origin of the coordinate system.
 
Vector3D GetXAxisDirection ()
 Returns the X axis direction.
 
Vector3D GetYAxisDirection ()
 Returns the Y axis direction.
 
Vector3D GetZAxisDirection ()
 Returns the Z axis direction.
 
Axis3D GetXAxis ()
 Returns the X axis.
 
Axis3D GetYAxis ()
 Returns the Y axis.
 
Axis3D GetZAxis ()
 Returns the Z axis.
 
boolean operator== (Placement3D other)
 Checks for equality.
 
boolean operator~= (Placement3D other)
 Checks for inequality.
 
Matrix3D GetMatrix ()
 Returns the matrix of transformation from the local coordinate system.
 

Detailed Description

Local coordinate system in three dimensional space.

Constructor & Destructor Documentation

◆ Placement3D()

Placement3D ( Point3D point,
Vector3D z_axis_direction,
Vector3D x_axis_direction )

Constructor by a point and two vectors.

Example

Member Function Documentation

◆ Rotate()

self Rotate ( Axis3D axis,
number angle )

Rotates the coordinate system.

Parameters
axisAxis of rotation.
angleAngle of rotation in radians.

◆ Scale()

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

Scales the placement.

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