A plane represented by a normal vector and a distance along the normal from the origin.
A plane splits the 3D space in half. The normal vector points to the positive half and the other half is considered negative.
| Property | Description |
|---|---|
| Distance | Get/set the distance of the plane from the origin. May be a negative value. |
| Flipped | Flips the plane so the normal points in the opposite direction. |
| Normal | Get/set the normal vector of the plane. |
| NormalAndDistance | A plane in the form Ax + By + Cz + Dw = 0. |
| Constructor | Description |
|---|---|
| Plane | Constructs a Plane from arbitrary coefficients A, B, C, D of the plane equation Ax + By + Cz + Dw = 0. |
| Method | Description |
|---|---|
| Projection | Projects the given point onto the plane. |
| SignedDistanceToPoint | Get the signed distance from the point to the plane. |
| Method | Description |
|---|---|
| CreateFromUnitNormalAndDistance | Creates a normalized Plane directly without normalization cost. |
| CreateFromUnitNormalAndPointInPlane | Creates a normalized Plane without normalization cost. |
| Normalize | Normalizes the given Plane. |
| Operator | Description |
|---|---|
| float4 | Implicitly converts a Plane to Unity.Mathematics.float4. |