Clamp a value between a minimum and a maximum.
The value to clamp.
The minimum value.
The maximum value.
The clamped value.
Map a value between 0 and 1 to between a minimum and maximum value.
The value to lerp.
The minimum value to lerp from.
The maximum value to lerp to.
The lerped value.
Map a value between a minimum and maximum value to between 0 and 1.
The value to unlerp.
The minimum value to unlerp from.
The maximum value to unlerp to.
The unlerped value.
Convert the vector into a string.
The vector as a string.
A null vector.
Create a 2D Vector from two numbers.
X coordinate of the vector.
Y coordinate of the vector. Leave out to use the same value as x.
Create a 2D vector from a number tuple.
The X and Y coordinates of the vector.
Create a 2D vector from another 2D vector, cloning it.
The vector to clone.
Create a 2D vector from an object containing an x and y property.
The object to create from.
The X coordinate of the vector.
The Y coordinate of the vector.
Generated using TypeDoc
Represents a 2D vector in Among Us, i.e. a position or velocity.