Property | Type | Description | |
---|---|---|---|
Pivot | Vector2 | ||
Position | Vector2 | ||
Rotation | float | ||
Scale | Vector2 |
Method | Description | |
---|---|---|
Equals ( object obj ) : bool | ||
GetHashCode ( ) : int | ||
Transformation ( ) : System | ||
Transformation ( |
||
Transformation ( Vector2 position, Vector2 scale, float rotation ) : System |
Constructs a transformation with the most common elements (position, scale, rotation)
|
|
Transformation ( Vector2 position, Vector2 scale, float rotation, Vector2 pivot ) : System |
Constructs a transformation with position, scale, rotation and custom pivot There are some problems that occur with non-centered pivots. Looking into this. |
|
operator ( ) : bool |
public Transformation ( |
||
old | ||
return | System |
public Transformation ( Vector2 position, Vector2 scale, float rotation ) : System | ||
position | Vector2 | The object's position in world space |
scale | Vector2 | The object's scale factors |
rotation | float | Degrees rotated, in radians |
return | System |
public Transformation ( Vector2 position, Vector2 scale, float rotation, Vector2 pivot ) : System | ||
position | Vector2 | The object's position in world space |
scale | Vector2 | The object's scale factors |
rotation | float | Degrees rotated, in radians |
pivot | Vector2 | The pivot point, in object space |
return | System |