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