Skip to Content

Point3 D

Simple point in 3D space used to inforce correct position input on Matrix

Quick Facts

PropertyValue
ClassPoint3D
Modulecenpymath.Point3D
Packagecenpymath
ReleaseR2025.2.4
Methods6

Quick Start

# Boilerplate Example obj = Point3D(xyz) result = obj.GetX()

Method Index

MethodReturnsSummary
__init__NoneConstructor
GetXfloatGets the X-coordinate
GetYfloatGets the Y-coordinate
GetZfloatGets the Z-coordinate
GetXYZtupleGets the point coordinates as tuple of float
SetXYZNoneSets the point coordinates

Lifecycle

__init__

def __init__(xyz: tuple=None) -> None

Constructor

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:

NameTypeDescription
xyztuple— (default: None)

Returns: None

Query Methods

GetX

def GetX() -> float

Gets the X-coordinate

Returns: float — returns X-coordinate as float

GetY

def GetY() -> float

Gets the Y-coordinate

Returns: float — returns Y-coordinate as float

GetZ

def GetZ() -> float

Gets the Z-coordinate

Returns: float — returns Z-coordinate as float

GetXYZ

def GetXYZ() -> tuple

Gets the point coordinates as tuple of float

Returns: tuple — returns x, y, z as tuple of float

Mutation Methods

SetXYZ

def SetXYZ(xyz: tuple) -> None

Sets the point coordinates

Parameters:

NameTypeDescription
xyztupletuple 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?