Class "DestinationQuad"⚓︎
Constructors⚓︎
DestinationQuad ()⚓︎
DestinationQuad DestinationQuad ( Vector TopLeft, Vector TopRight, Vector BottomLeft, Vector BottomRight )⚓︎
NewFromBounds ()⚓︎
DestinationQuad NewFromBounds ( Vector TopLeft, Vector BottomRight )⚓︎
NewFromRectangle ()⚓︎
DestinationQuad NewFromRectangle ( Vector TopLeft, float Width, float Height )⚓︎
Functions⚓︎
__tostring ()⚓︎
string __tostring ( )⚓︎
Creates a string representation of the quad object.
This enables direct printing of the object by doing print(quad)
GetBottomLeft ()⚓︎
Vector GetBottomLeft ( )⚓︎
GetBottomRight ()⚓︎
Vector GetBottomRight ( )⚓︎
GetTopLeft ()⚓︎
Vector GetTopLeft ( )⚓︎
GetTopRight ()⚓︎
Vector GetTopRight ( )⚓︎
SetBottomLeft ()⚓︎
void SetBottomLeft ( Vector Vector )⚓︎
SetBottomRight ()⚓︎
void SetBottomRight ( Vector Vector )⚓︎
SetTopLeft ()⚓︎
void SetTopLeft ( Vector Vector )⚓︎
SetTopRight ()⚓︎
void SetTopRight ( Vector Vector )⚓︎
Copy ()⚓︎
DestinationQuad Copy ( )⚓︎
Translate ()⚓︎
void Translate ( Vector offset )⚓︎
Scale ()⚓︎
void Scale ( Vector scale, Vector anchor )⚓︎
Rotate ()⚓︎
void Rotate ( number rotation, Vector anchor )⚓︎
The rotation is in Degrees.
Shear ()⚓︎
void Shear ( Vector shear, Vector anchor )⚓︎
ApplyMatrix ()⚓︎
void ApplyMatrix ( table renderMatrix, Vector anchor )⚓︎
Applies a 2x3 render matrix to the image, effectively applying a Translate, Scale, Rotate and Shear all at once.
The table must have at least 2 rows, each with at least 3 columns.