Transform2D¶
Category: Built-In Types
Brief Description¶
3x2 Matrix for 2D transforms.
Member Functions¶
Transform2D | Transform2D ( Transform from ) |
Transform2D | Transform2D ( Vector2 x_axis, Vector2 y_axis, Vector2 origin ) |
Transform2D | Transform2D ( float rot, Vector2 pos ) |
Transform2D | affine_inverse ( ) |
Transform2D | basis_xform ( var v ) |
Transform2D | basis_xform_inv ( var v ) |
Vector2 | get_origin ( ) |
float | get_rotation ( ) |
Vector2 | get_scale ( ) |
Transform2D | interpolate_with ( Transform2D transform, float weight ) |
Transform2D | inverse ( ) |
Transform2D | orthonormalized ( ) |
Transform2D | rotated ( float phi ) |
Transform2D | scaled ( Vector2 scale ) |
Transform2D | translated ( Vector2 offset ) |
Transform2D | xform ( var v ) |
Transform2D | xform_inv ( var v ) |
Description¶
3x2 Matrix for 2D transforms.
Member Function Description¶
- Transform2D Transform2D ( Transform from )
- Transform2D Transform2D ( Vector2 x_axis, Vector2 y_axis, Vector2 origin )
- Transform2D Transform2D ( float rot, Vector2 pos )
- Transform2D affine_inverse ( )
Return the inverse of the matrix.
- Transform2D basis_xform ( var v )
- Transform2D basis_xform_inv ( var v )
- Vector2 get_origin ( )
- float get_rotation ( )
Return the rotation (in radians).
- Vector2 get_scale ( )
- Transform2D interpolate_with ( Transform2D transform, float weight )
- Transform2D inverse ( )
- Transform2D orthonormalized ( )
- Transform2D rotated ( float phi )
- Transform2D scaled ( Vector2 scale )
- Transform2D translated ( Vector2 offset )
- Transform2D xform ( var v )
- Transform2D xform_inv ( var v )