MMpy.Point3D
Syntax
MMpy.Point3D(x=0.0, y=0.0, z=0.0)
Description
Creates a 3D point object instance with the specified coordinates.
Parameters
Name |
Type |
Description |
---|---|---|
x |
float (optional) | The value to assign to the X coordinate. Defaults to 0.0. |
y |
float (optional) | The value to assign to the Y coordinate. Defaults to 0.0. |
z |
float (optional) | The value to assign to the Z coordinate. Defaults to 0.0. |
Returns
Type |
Description |
---|---|
MMpy.Point3D | A new point 3D object instance. |
See Also
MMpy.Point3D.x
MMpy.Point3D.y
MMpy.Point3D.z
Examples
# Can be used to describe a point. point = MMpy.Point3D(100.0, 50.0, 50.0) # Can also be used to describe a vector. vector = MMpy.Point3D(1.0, 0.0, 0.0) # And more... size = MMpy.Point3D(10.0, 10.0, 10.0)
Resource ID
IDPH_POINT3D_CSTR