Vector3 - Mtax-Development/GML-OOP GitHub Wiki

Description

Constructs a Container for three-dimensional coordinates: x, y and z.

Specification

Destruction
Elements
Garbage Collection
None

Properties

Name
Type
Default
Modifiable
x
undefined
Yes
y
undefined
Yes
z
undefined
Yes

Construction types

Name
Arguments
Argument note
Three numbers
x {real}
y {real}
z {real}
One number for all values
value {real}
From array
array {real[]}
Array positions will be applied depending on its size:
1: array[0] will be set to x, y and z.
3+: array[0] will be set to x, array[1] will be set to y, array[2] will be set to z.
Vector2 + value
vector {Vector2}
value {real}
Empty
Constructor copy
other {Vector3}
⚠️ **GitHub.com Fallback** ⚠️