Projection(float3)
Projects the given point onto the plane.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Mathematics.Geometry
- Assembly: UnityEngine.MathematicsModule
public float3 Projection(float3 point)
Parameters
Point to project onto the plane.
Returns
Type | Description |
|---|---|
| float3 | Projected point that's inside the plane. |
Remarks
Plane must be normalized prior to calling this function. The result is the position closest to the point that still lies in the plane.