HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
|
A transform contains translation and rotation. More...
Inherits IEquatable< Transform >.
Public Member Functions | |
Transform (Vec2 position, Rotation rotation) | |
Construct a transform with a position and rotation. | |
override string | ToString () |
Returns a string representation of the transform. | |
bool | Equals (Transform other) |
Check if two transforms are equal. | |
override bool | Equals (object? obj) |
Check if an object is equal to this transform. | |
override int | GetHashCode () |
Returns a hash code for this transform. | |
Public Attributes | |
Vec2 | Position |
The translation position in world space. Use Vec2.Zero for the origin. | |
Rotation | Rotation |
The rotation in radians. Use Rotation.Identity for no rotation. | |
Static Public Attributes | |
static readonly Transform | Identity |
The identity transform. This transform has no translation or rotation. | |
Properties | |
string | DebuggerDisplay [get] |
Debugger display for the transform. | |
A transform contains translation and rotation.