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.PhysicalQuantityProvides geometry primitive representation for a 3D point.
- Parameters:
- input
ndarray|RealSequence, default:DEFAULT_POINT3D_VALUES Direction arguments, either as a
numpy.ndarrayclass 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.
- property Point3D.position: numpy.ndarray#
Get the position of the point as a numpy array.
Attribute detail#
- Point3D.flat#
Method detail#
- Point3D.__add__(other: Point3D | ansys.geometry.core.math.vector.Vector3D) Point3D#
Add operation for the
Point3Dclass.
- Point3D.__sub__(other: Point3D | ansys.geometry.core.math.vector.Vector3D) Point3D#
Subtraction operation for the
Point3Dclass.
- 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:
Point3DNew 3D point that is the transformed copy of the original 3D point after applying the transformation matrix.
Notes
Transform the
Point3Dobject by applying the specified 4x4 transformation matrix and return a newPoint3Dobject representing the transformed point.