Scale - Mtax-Development/GML-OOP GitHub Wiki

Description

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.

Specification

Destruction
Elements
Garbage Collection
None

Properties

Name
Type
Default
Modifiable
x
1
Yes
y
1
Yes

Construction types

Name
Arguments
Argument note
Two values
x {real}
y {real}
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}
⚠️ **GitHub.com Fallback** ⚠️