UnitVector2D
#
- class ansys.geometry.core.math.vector.UnitVector2D(shape, dtype=float, buffer=None, offset=0, strides=None, order=None)#
Bases:
Vector2D
Provides for creating and managing a 3D unit vector.
- Parameters:
- input
ndarray
|RealSequence
|Vector2D
1D
numpy.ndarray
class with shape(X,)Vector2D
- input
Overview#
Create a 2D unit vector from two distinct 2D points. |
Import detail#
from ansys.geometry.core.math.vector import UnitVector2D
Method detail#
- classmethod UnitVector2D.from_points(point_a: numpy.ndarray | ansys.geometry.core.typing.RealSequence | ansys.geometry.core.math.point.Point2D, point_b: numpy.ndarray | ansys.geometry.core.typing.RealSequence | ansys.geometry.core.math.point.Point2D)#
Create a 2D unit vector from two distinct 2D points.