Rotation expressed as a cosine and sine.
More...
Inherits IEquatable< Rotation >.
|
| Rotation (float cos, float sin) |
| Constructs a rotation from cosine and sine values.
|
|
| Rotation (float radians) |
| Constructs a rotation from an angle in radians.
|
|
override string | ToString () |
| Returns a string representation of the rotation.
|
|
float | GetAngle () |
| Returns the angle of the rotation in radians.
|
|
bool | Equals (Rotation other) |
| Checks if this rotation is equal to another rotation.
|
|
override bool | Equals (object? obj) |
| Checks if this rotation is equal to another object.
|
|
override int | GetHashCode () |
| Returns a hash code for this rotation.
|
|
|
static implicit | operator Rotation ((float Cos, float Sin) tuple) |
| Implicitly converts a tuple of (cos, sin) to a Rotation.
|
|
static implicit | operator (float, float)(Rotation rotation) |
| Implicitly converts a Rotation to a tuple of (cos, sin).
|
|
static implicit | operator Rotation (float radians) |
| Implicitly converts a float (angle in radians) to a Rotation.
|
|
static implicit | operator float (Rotation rotation) |
| Implicitly converts a Rotation to a float (angle in radians).
|
|
|
float | Cos |
| Cosine component of the rotation.
|
|
float | Sin |
| Sine component of the rotation.
|
|
|
static readonly Rotation | Identity |
| Identity rotation (0 degrees).
|
|
|
unsafe bool | Valid [get] |
| Checks if this rotation is valid.
|
|
Rotation expressed as a cosine and sine.
◆ Valid
unsafe bool Box2D.Rotation.Valid |
|
get |
Checks if this rotation is valid.
Not NaN or infinity and normalized.
The documentation for this struct was generated from the following files:
- src/Box2DBindings/Rotation.cs
- src/Box2DBindings/Rotation_Externs.cs