Point2D
#
- class ansys.geometry.core.math.point.Point2D(input: beartype.typing.Union[numpy.ndarray, ansys.geometry.core.typing.RealSequence] = DEFAULT_POINT2D_VALUES, unit: beartype.typing.Optional[pint.Unit] = None)#
Bases:
numpy.ndarray
,ansys.geometry.core.misc.units.PhysicalQuantity
Provides geometry primitive representation for a 2D point.
- Parameters:
- input
Union
[ndarray
,RealSequence
], default:DEFAULT_POINT2D_VALUES
Direction arguments, either as a
numpy.ndarray
class or as aRealSequence
.- unit
Unit
, default:DEFAULT_UNITS.LENGTH
Units for defining 2D point values.
- input
Overview#
Import detail#
from ansys.geometry.core.math.point import Point2D
Property detail#
- property Point2D.x: pint.Quantity#
X plane component value.
- property Point2D.y: pint.Quantity#
Y plane component value.
Method detail#
- Point2D.__add__(other: beartype.typing.Union[Point2D, ansys.geometry.core.math.vector.Vector2D]) Point2D #
Add operation for the
Point2D
class.