mitk.Point3D#
- class mitk.Point3D#
Bases:
pybind11_object3D point in world coordinates.
A triple of double-precision scalars accessible by index or by
x/y/zattributes.Examples
>>> p = mitk.Point3D(1.0, 2.0, 3.0) >>> p.x, p.y, p.z (1.0, 2.0, 3.0)
- __init__(*args, **kwargs)#
Overloaded function.
__init__(self: mitk.Point3D) -> None
Construct a point at the origin (0, 0, 0).
__init__(self: mitk.Point3D, x: typing.SupportsFloat, y: typing.SupportsFloat, z: typing.SupportsFloat) -> None
Construct a point at the given coordinates.
- Parameters:
x – X coordinate.
y – Y coordinate.
z – Z coordinate.
Methods
__init__(*args, **kwargs)Overloaded function.
Attributes
- __getitem__(self: mitk.Point3D, arg0: SupportsInt) float#
Return the i-th coordinate (0 = x, 1 = y, 2 = z).
- __setitem__(self: mitk.Point3D, arg0: SupportsInt, arg1: SupportsFloat) None#
Set the i-th coordinate.
- property x#
X coordinate.
- property y#
Y coordinate.
- property z#
Z coordinate.