Arcade
|
Structure representing a 2D affine transformation. More...
Public Member Functions | |
override string | ToString () |
Returns a string representation of this transformation. More... | |
Static Public Member Functions | |
static Transform | operator* (Transform a, Transform b) |
Finds the result of applying the first Transform to the second. More... | |
static Vector2F | operator* (Transform t, Vector2F v) |
Finds the result of applying a Tansform to a vector. More... | |
static Transform | Translation (Vector2F trans) |
Creates a Transform representing a translation. More... | |
static Transform | Rotation (float radians) |
Creates a Transform representing a rotation. More... | |
static Transform | Scale (Vector2F scale) |
Creates a Transform representing a scale. More... | |
static Transform | Scale (float scale) |
Creates a Transform representing a scale. More... | |
Static Public Attributes | |
static readonly Transform | Identity = Translation(Vector2F.Zero) |
Represents no transformation. More... | |
Properties | |
Transform | NoTranslation [get] |
Creates a Transform equivalent to this one, but without a translation. More... | |
Transform | Inverse [get] |
Creates a Transform equivalent to the inverse of this one. More... | |
Structure representing a 2D affine transformation.
Finds the result of applying a Tansform to a vector.
t | Transform to apply. |
v | Vector to apply to. |
|
inlinestatic |
Creates a Transform representing a rotation.
radians | Angle to rotate by, in radians. |
Creates a Transform representing a scale.
scale | Horizontal and vertical scale. |
|
inlinestatic |
Creates a Transform representing a scale.
scale | Horizontal and vertical scale. |
|
inline |
Returns a string representation of this transformation.
Creates a Transform representing a translation.
trans | Translation offset. |
|
static |
Represents no transformation.