Three-dimensional point.
More...
|
| 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.
|
|
◆ Rotate()
self Rotate |
( |
Axis3D | axis, |
|
|
number | angle ) |
Rotates the point.
- Parameters
-
axis | Axis of rotation. |
angle | The angle in radians. |
◆ Scale()
self Scale |
( |
Point3D | fixedPoint, |
|
|
number | xScale, |
|
|
number | yScale, |
|
|
number | zScale ) |
Scales the point.
- Parameters
-
fixedPoint | Fixed point. |
xScale | X scale coefficient. |
yScale | Y scale coefficient. |
zScale | Z scale coefficient. |