Transform2D

Represents one or many transformations in 2D space such as translation, rotation, or scaling. It is similar to a 3x2 matrix.

Constructors

this
this(real_t xx, real_t xy, real_t yx, real_t yy, real_t ox, real_t oy)
Undocumented in source.
this
this(real_t p_rot, Vector2 p_pos)
Undocumented in source.

Members

Functions

affineInverse
Transform2D affineInverse()
Undocumented in source. Be warned that the author may not have intended to support it.
affineInvert
void affineInvert()
Undocumented in source. Be warned that the author may not have intended to support it.
basisDeterminant
real_t basisDeterminant()
Undocumented in source. Be warned that the author may not have intended to support it.
basisScaled
Transform2D basisScaled(Vector2 p_scale)
Undocumented in source. Be warned that the author may not have intended to support it.
basisXform
Vector2 basisXform(Vector2 v)
Undocumented in source. Be warned that the author may not have intended to support it.
basisXformInv
Vector2 basisXformInv(Vector2 v)
Undocumented in source. Be warned that the author may not have intended to support it.
getRotation
real_t getRotation()
Undocumented in source. Be warned that the author may not have intended to support it.
getScale
Vector2 getScale()
Undocumented in source. Be warned that the author may not have intended to support it.
interpolateWith
Transform2D interpolateWith(Transform2D p_transform, real_t p_c)
Undocumented in source. Be warned that the author may not have intended to support it.
inverse
Transform2D inverse()
Undocumented in source. Be warned that the author may not have intended to support it.
invert
void invert()
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Transform2D opBinary(Transform2D p_transform)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
const(Vector2) opIndex(int axis)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
Vector2 opIndex(int axis)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(Transform2D p_transform)
Undocumented in source. Be warned that the author may not have intended to support it.
orthonormalize
void orthonormalize()
Undocumented in source. Be warned that the author may not have intended to support it.
orthonormalized
Transform2D orthonormalized()
Undocumented in source. Be warned that the author may not have intended to support it.
rotate
void rotate(real_t p_phi)
Undocumented in source. Be warned that the author may not have intended to support it.
rotated
Transform2D rotated(real_t p_phi)
Undocumented in source. Be warned that the author may not have intended to support it.
scale
void scale(Vector2 p_scale)
Undocumented in source. Be warned that the author may not have intended to support it.
scaleBasis
void scaleBasis(Vector2 p_scale)
Undocumented in source. Be warned that the author may not have intended to support it.
scaled
Transform2D scaled(Vector2 p_scale)
Undocumented in source. Be warned that the author may not have intended to support it.
setRotation
void setRotation(real_t p_rot)
Undocumented in source. Be warned that the author may not have intended to support it.
setRotationAndScale
void setRotationAndScale(real_t p_rot, Vector2 p_scale)
Undocumented in source. Be warned that the author may not have intended to support it.
tdotx
real_t tdotx(Vector2 v)
Undocumented in source. Be warned that the author may not have intended to support it.
tdoty
real_t tdoty(Vector2 v)
Undocumented in source. Be warned that the author may not have intended to support it.
translate
void translate(real_t p_tx, real_t p_ty)
Undocumented in source. Be warned that the author may not have intended to support it.
translate
void translate(Vector2 p_translation)
Undocumented in source. Be warned that the author may not have intended to support it.
translated
Transform2D translated(Vector2 p_offset)
Undocumented in source. Be warned that the author may not have intended to support it.
untranslated
Transform2D untranslated()
Undocumented in source. Be warned that the author may not have intended to support it.
xform
Vector2 xform(Vector2 v)
Undocumented in source. Be warned that the author may not have intended to support it.
xform
Rect2 xform(Rect2 p_rect)
Undocumented in source. Be warned that the author may not have intended to support it.
xformInv
Vector2 xformInv(Vector2 p_vec)
Undocumented in source. Be warned that the author may not have intended to support it.
xformInv
Rect2 xformInv(Rect2 p_rect)
Undocumented in source. Be warned that the author may not have intended to support it.

Unions

__anonymous
union __anonymous
Undocumented in source.

Meta