|
MeshUtilsProject3DPointsTo2DPlane(Vector3, Vector3, Vector3, Vector2, Vector2) Method |
Projects the given array of 3D positions onto a 2D plane specified by its normal vector and side direction
vector (the "height" direction of the 2D shape).
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public static Vector2[] Project3DPointsTo2DPlane(
Vector3[] positions,
Vector3 planeNormalVector,
Vector3 planeHeightVector,
out Vector2 boundsMin,
out Vector2 boundsMax
)
Parameters
- positions Vector3
- Input 3D positions.
- planeNormalVector Vector3
- Vector that defines the plane normal (i.e., perpendicular to the plane's surface).
- planeHeightVector Vector3
- Vector that defines the direction along the plane surface (i.e., along the Y direction of the 2D plane shape).
- boundsMin Vector2
- out: Minimum bounds of the projected 2D plane coordinates.
- boundsMax Vector2
- out: Maximum bounds of the projected 2D plane coordinates.
Return Value
Vector2Projected 2D plane positions.
See Also