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

A transform contains translation and rotation. More...

Inherits IEquatable< Transform >.

Collaboration diagram for Box2D.Transform:
Collaboration graph
[legend]

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.
 

Detailed Description

A transform contains translation and rotation.


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