HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Properties | List of all members
Box2D.Character_Movement.Plane Struct Reference

A plane in 2D space. More...

Public Member Functions

 Plane (Vec2 normal, float offset)
 Constructs a new Plane object with the given parameters.
 
 Plane ()
 Constructs a new Plane object with default values.
 

Public Attributes

Vec2 Normal
 The normal vector of the plane.
 
float Offset
 The offset of the plane.
 

Properties

bool Valid [get]
 Checks if the plane is valid.
 

Detailed Description

A plane in 2D space.

Constructor & Destructor Documentation

◆ Plane()

Box2D.Character_Movement.Plane.Plane ( Vec2  normal,
float  offset 
)
inline

Constructs a new Plane object with the given parameters.

Parameters
normalThe normal vector of the plane.
offsetThe offset of the plane.
Exceptions
ArgumentOutOfRangeExceptionThrown 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.

Property Documentation

◆ Valid

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.
This wraps b2IsValidPlane.


The documentation for this struct was generated from the following file: