Click or drag to resize
Ab4d.SharpEngine logo

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.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
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

Vector2
Projected 2D plane positions.
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MeshUtils.Project3DPointsTo2DPlane(System.Numerics.Vector3[],System.Numerics.Vector3,System.Numerics.Vector3,System.Numerics.Vector2@,System.Numerics.Vector2@)"]

See Also