Point3D
#
- class ansys.geometry.core.math.point.Point3D(input: numpy.ndarray | ansys.geometry.core.typing.RealSequence = DEFAULT_POINT3D_VALUES, unit: pint.Unit | None = None)#
Bases:
numpy.ndarray
,ansys.geometry.core.misc.units.PhysicalQuantity
Provides geometry primitive representation for a 3D point.
- Parameters:
- input
ndarray
|RealSequence
, default:DEFAULT_POINT3D_VALUES
Direction arguments, either as a
numpy.ndarray
class or as aRealSequence
.- unit
Unit
|None
, default:DEFAULT_UNITS.LENGTH
Units for defining 3D point values. If not specified, the default unit is
DEFAULT_UNITS.LENGTH
.
- input
Overview#
Import detail#
from ansys.geometry.core.math.point import Point3D
Property detail#
- property Point3D.x: pint.Quantity#
X plane component value.
- property Point3D.y: pint.Quantity#
Y plane component value.
- property Point3D.z: pint.Quantity#
Z plane component value.
Attribute detail#
- Point3D.flat#
Method detail#
- Point3D.__add__(other: Point3D | ansys.geometry.core.math.vector.Vector3D) Point3D #
Add operation for the
Point3D
class.
- Point3D.__sub__(other: Point3D | ansys.geometry.core.math.vector.Vector3D) Point3D #
Subtraction operation for the
Point3D
class.
- Point3D.transform(matrix: ansys.geometry.core.math.matrix.Matrix44) Point3D #
Transform the 3D point with a transformation matrix.
- Parameters:
- matrix
Matrix44
4x4 transformation matrix to apply to the point.
- matrix
- Returns:
Point3D
New 3D point that is the transformed copy of the original 3D point after applying the transformation matrix.
Notes
Transform the
Point3D
object by applying the specified 4x4 transformation matrix and return a newPoint3D
object representing the transformed point.