A plane in 2D space.
More...
|
| | Plane (Vec2 normal, float offset) |
| | Constructs a new Plane object with the given parameters.
|
| |
|
| Plane () |
| | Constructs a new Plane object with default values.
|
| |
|
|
Vec2 | Normal |
| | The normal vector of the plane.
|
| |
|
float | Offset |
| | The offset of the plane.
|
| |
|
| unsafe bool | Valid [get] |
| | Checks if the plane is valid.
|
| |
◆ Plane()
| Box2D.Character_Movement.Plane.Plane |
( |
Vec2 |
normal, |
|
|
float |
offset |
|
) |
| |
|
inline |
Constructs a new Plane object with the given parameters.
- Parameters
-
| normal | The normal vector of the plane. |
| offset | The offset of the plane. |
- Exceptions
-
| ArgumentOutOfRangeException | Thrown when the normal vector is not a unit vector. |
A plane is valid if its normal is a unit vector and it is not NaN or infinity.
◆ Valid
| unsafe bool Box2D.Character_Movement.Plane.Valid |
|
get |
Checks if the plane is valid.
- Returns
- True if the plane is valid, false otherwise.
A plane is valid if its normal is a unit vector and it is not NaN or infinity.
The documentation for this struct was generated from the following files:
- src/Box2DBindings/Collision/Character Movement/Plane.cs
- src/Box2DBindings/Collision/Character Movement/Plane_Externs.cs