Computes the component wise absolute
Adds a vector and return a new vector
Adds a vector
Adds a scalar to both components and return a new vector
Adds two scalars and return a new vector
Returns the angle
0 .. 2 PI
Computes and returns the center between both points
return a copy of the vector
Returns the unnormalized direction to the other point
Computes the distance to a given vector
Computes the square distance to a given vectort
Divides both components by a scalar and return a new vector
Divides both components by a scalar
Divides both components by the given scalars and return a new vector
Computes the scalar product
Compares both vectors for exact equality. Does not do an epsilon compare
Compares both vectors for epsilon equality
Returns a perpendicular vector
Computes componentwise floor and return a new vector
Returns the euclidian length
Returns the square length
Computes the component wise maximum and return a new vector
For both components, compute the maximum of each component and the given scalar, and return a new vector. For example:
Computes the component wise minimum and return a new vector
Multiplies with a vector and return a new vector
Multiplies both components with a scalar and return a new vector
Multiplies both components with two scalars and returns a new vector
Normalizes the vector, dividing by the length(), and return a new vector
Normalizes the vector, dividing by the length(), and return a new vector
Returns the normalized vector to the other point
Rotates this vector
new vector
Computes componentwise round and return a new vector
Creates a simple representation of the vector
Serializes the vector to a string
Converts the top left tile position of this vector
Substracts a vector and return a new vector
Substracts a scalar and return a new vector
Substracts two scalars and return a new vector
Converts this vector from world to street space and return a new vector
Returns a string representation of the vector
Converts this vector from world to tile space and return a new vector
Converts this vector to world space and return a new vector
Converts this vector to world space and return a new vector
Deserializes a vector from a string
Deserializes a vector from a serialized json object