Scale - Mtax-Development/GML-OOP GitHub Wiki
Constructs a Scale container that can be used for drawing or manipulated in other ways.
It is a universal constructor containing two values that can be expressed on a two-dimensional plane, horizontal as x and vertical as y. The value of 1 represents the default scale of the axis. Any other value is a multiplication of that scale. Negative values represent a mirroring on that axis.
Vector2 is a similar constructor with the same properties, but for a universal purpose.
It is a universal constructor containing two values that can be expressed on a two-dimensional plane, horizontal as x and vertical as y. The value of 1 represents the default scale of the axis. Any other value is a multiplication of that scale. Negative values represent a mirroring on that axis.
Vector2 is a similar constructor with the same properties, but for a universal purpose.
Destruction |
Elements |
Garbage Collection |
None |
Name |
Type |
Default |
Modifiable |
x |
{real} |
1 |
Yes |
y |
{real} |
1 |
Yes |
Name |
Arguments |
Argument note |
Two values |
||
One number for all values |
value {real} |
|
Default for all values |
||
From array |
array {real[]} |
Array positions will be applied depending on its size: 1: array[0] will be set to x and y. 2+: array[0] will be set to x, array[1] will be set to y. |
From Vector2 |
other {Vector2} |
|
Constructor copy |
other {Scale} |