Arcade
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
GameAPI.Transform Struct Reference

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...
 

Detailed Description

Structure representing a 2D affine transformation.

Member Function Documentation

static Transform GameAPI.Transform.operator* ( Transform  a,
Transform  b 
)
inlinestatic

Finds the result of applying the first Transform to the second.

Parameters
aTransform to apply.
bTransform to apply to.
static Vector2F GameAPI.Transform.operator* ( Transform  t,
Vector2F  v 
)
inlinestatic

Finds the result of applying a Tansform to a vector.

Parameters
tTransform to apply.
vVector to apply to.
static Transform GameAPI.Transform.Rotation ( float  radians)
inlinestatic

Creates a Transform representing a rotation.

Parameters
radiansAngle to rotate by, in radians.
static Transform GameAPI.Transform.Scale ( Vector2F  scale)
inlinestatic

Creates a Transform representing a scale.

Parameters
scaleHorizontal and vertical scale.
static Transform GameAPI.Transform.Scale ( float  scale)
inlinestatic

Creates a Transform representing a scale.

Parameters
scaleHorizontal and vertical scale.
override string GameAPI.Transform.ToString ( )
inline

Returns a string representation of this transformation.

static Transform GameAPI.Transform.Translation ( Vector2F  trans)
inlinestatic

Creates a Transform representing a translation.

Parameters
transTranslation offset.

Member Data Documentation

readonly Transform GameAPI.Transform.Identity = Translation(Vector2F.Zero)
static

Represents no transformation.

Property Documentation

Transform GameAPI.Transform.Inverse
get

Creates a Transform equivalent to the inverse of this one.

Transform GameAPI.Transform.NoTranslation
get

Creates a Transform equivalent to this one, but without a translation.