Glade Reference
A Vector class represents a direction.
Creates a Vector object v. The Vector is initialised to (0 0) by default.
v = Vector(x, y)
Creates a Vector v, initialised with the values x and y.
Set the Vector X value.
Set the Vector Y value.
x = v.x
Get the X component of the Vector v.
y = v.y
Get the Y component of the Vector v.
Adds the two Vectors.
Subtracts the two Vectors.
Returns a Vector multiplied by a scalar.
Returns a Vector divided by a scalar.
Copyright © Peardrop Design 2020.