Point3 D
Simple point in 3D space used to inforce correct position input on Matrix
Quick Facts
| Property | Value |
|---|---|
| Class | Point3D |
| Module | cenpymath.Point3D |
| Package | cenpymath |
| Release | R2025.2.4 |
| Methods | 6 |
Quick Start
# Boilerplate Example
obj = Point3D(xyz)
result = obj.GetX()Method Index
| Method | Returns | Summary |
|---|---|---|
__init__ | None | Constructor |
GetX | float | Gets the X-coordinate |
GetY | float | Gets the Y-coordinate |
GetZ | float | Gets the Z-coordinate |
GetXYZ | tuple | Gets the point coordinates as tuple of float |
SetXYZ | None | Sets the point coordinates |
Lifecycle
__init__
def __init__(xyz: tuple=None) -> NoneConstructor
If the input postion is None, a point at 0.0, 0.0, 0.0 will be created. If an input is given, it must be a tuple of float with exactly 3 items
Parameters:
| Name | Type | Description |
|---|---|---|
xyz | tuple | — (default: None) |
Returns: None
Query Methods
GetX
def GetX() -> floatGets the X-coordinate
Returns: float — returns X-coordinate as float
GetY
def GetY() -> floatGets the Y-coordinate
Returns: float — returns Y-coordinate as float
GetZ
def GetZ() -> floatGets the Z-coordinate
Returns: float — returns Z-coordinate as float
GetXYZ
def GetXYZ() -> tupleGets the point coordinates as tuple of float
Returns: tuple — returns x, y, z as tuple of float
Mutation Methods
SetXYZ
def SetXYZ(xyz: tuple) -> NoneSets the point coordinates
Parameters:
| Name | Type | Description |
|---|---|---|
xyz | tuple | tuple containing the new coordinates in order x, y, z |
Returns: None
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?