Plane
#
- class ansys.geometry.core.math.plane.Plane(origin: beartype.typing.Union[numpy.ndarray, ansys.geometry.core.typing.RealSequence, ansys.geometry.core.math.point.Point3D] = ZERO_POINT3D, direction_x: beartype.typing.Union[numpy.ndarray, ansys.geometry.core.typing.RealSequence, ansys.geometry.core.math.vector.UnitVector3D, ansys.geometry.core.math.vector.Vector3D] = UNITVECTOR3D_X, direction_y: beartype.typing.Union[numpy.ndarray, ansys.geometry.core.typing.RealSequence, ansys.geometry.core.math.vector.UnitVector3D, ansys.geometry.core.math.vector.Vector3D] = UNITVECTOR3D_Y)#
Bases:
ansys.geometry.core.math.frame.Frame
Provides primitive representation of a 2D plane in 3D space.
- Parameters:
- origin
Union
[ndarray
,RealSequence
,Point3D
], default:ZERO_POINT3D
Centered origin of the frame. The default is
ZERO_POINT3D
, which is the Cartesian origin.- direction_x
Union
[ndarray
,RealSequence
,UnitVector3D
,Vector3D
], default:UNITVECTOR3D_X
X-axis direction.
- direction_y
Union
[ndarray
,RealSequence
,UnitVector3D
,Vector3D
], default:UNITVECTOR3D_Y
Y-axis direction.
- origin
Overview#
Check if a 3D point is contained in the plane. |
Calculate the normal vector of the plane. |
Import detail#
from ansys.geometry.core.math.plane import Plane
Property detail#
- property Plane.normal: ansys.geometry.core.math.vector.UnitVector3D#
Calculate the normal vector of the plane.
- Returns:
UnitVector3D
Normal vector of the plane.
Method detail#
- Plane.is_point_contained(point: ansys.geometry.core.math.point.Point3D) bool #
Check if a 3D point is contained in the plane.