Public Member Functions | Public Attributes | List of all members
Matrix32 Struct Reference

Public Member Functions

_FORCE_INLINE_ float tdotx (const Vector2 &v) const
 
_FORCE_INLINE_ float tdoty (const Vector2 &v) const
 
const Vector2operator[] (int p_idx) const
 
Vector2operator[] (int p_idx)
 
_FORCE_INLINE_ Vector2 get_axis (int p_axis) const
 
_FORCE_INLINE_ void set_axis (int p_axis, const Vector2 &p_vec)
 
void invert ()
 
Matrix32 inverse () const
 
void affine_invert ()
 
Matrix32 affine_inverse () const
 
void set_rotation (real_t p_phi)
 
real_t get_rotation () const
 
_FORCE_INLINE_ void set_rotation_and_scale (real_t p_phi, const Size2 &p_scale)
 
void rotate (real_t p_phi)
 
void scale (const Vector2 &p_scale)
 
void scale_basis (const Vector2 &p_scale)
 
void translate (real_t p_tx, real_t p_ty)
 
void translate (const Vector2 &p_translation)
 
float basis_determinant () const
 
Vector2 get_scale () const
 
_FORCE_INLINE_ const Vector2get_origin () const
 
_FORCE_INLINE_ void set_origin (const Vector2 &p_origin)
 
Matrix32 scaled (const Vector2 &p_scale) const
 
Matrix32 basis_scaled (const Vector2 &p_scale) const
 
Matrix32 translated (const Vector2 &p_offset) const
 
Matrix32 rotated (float p_phi) const
 
Matrix32 untranslated () const
 
void orthonormalize ()
 
Matrix32 orthonormalized () const
 
bool operator== (const Matrix32 &p_transform) const
 
bool operator!= (const Matrix32 &p_transform) const
 
void operator*= (const Matrix32 &p_transform)
 
Matrix32 operator* (const Matrix32 &p_transform) const
 
Matrix32 interpolate_with (const Matrix32 &p_transform, float p_c) const
 
_FORCE_INLINE_ Vector2 basis_xform (const Vector2 &p_vec) const
 
_FORCE_INLINE_ Vector2 basis_xform_inv (const Vector2 &p_vec) const
 
_FORCE_INLINE_ Vector2 xform (const Vector2 &p_vec) const
 
_FORCE_INLINE_ Vector2 xform_inv (const Vector2 &p_vec) const
 
_FORCE_INLINE_ Rect2 xform (const Rect2 &p_vec) const
 
_FORCE_INLINE_ Rect2 xform_inv (const Rect2 &p_vec) const
 
 operator String () const
 
 Matrix32 (real_t p_rot, const Vector2 &p_pos)
 

Public Attributes

Vector2 elements [3]
 

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