mul(Vector2) | Vector2 | Multiplies this Vector2 by the specified Vector2 and returns a new Vector2. |
mul(float, float) | Vector2 | Multiplies this Vector2 by the specified X and Y values and returns a new Vector2. |
mul(float) | Vector2 | Multiplies this Vector2 by the specified value and returns a new Vector2. |
mulLocal(Vector3) | void | Multiplies this Vector2 by the specified Vector3 (using only X and Y components) and updates this Vector2. |
mulLocal(Vector2) | void | Multiplies this Vector2 by the specified Vector2 and updates this Vector2. |
mulLocal(float, float) | void | Multiplies this Vector2 by the specified X and Y values and updates this Vector2. |
mulLocal(float) | void | Multiplies this Vector2 by the specified value and updates this Vector2. |
multiply(Vector2) | Vector2 | Multiplies this Vector2 by the specified Vector2 and returns a new Vector2. |
multiply(float, float) | Vector2 | Multiplies this Vector2 by the specified X and Y values and returns a new Vector2. |
multiply(float) | Vector2 | Multiplies this Vector2 by the specified value and returns a new Vector2. |
div(Vector2) | Vector2 | Divides this Vector2 by the specified Vector2 and returns a new Vector2. |
div(float, float) | Vector2 | Divides this Vector2 by the specified X and Y values and returns a new Vector2. |
div(float) | Vector2 | Divides this Vector2 by the specified value and returns a new Vector2. |
divLocal(Vector3) | void | Divides this Vector2 by the specified Vector3 (using only X and Y components) and updates this Vector2. |
divLocal(Vector2) | void | Divides this Vector2 by the specified Vector2 and updates this Vector2. |
divLocal(float, float) | void | Divides this Vector2 by the specified X and Y values and updates this Vector2. |
divLocal(float) | void | Divides this Vector2 by the specified value and updates this Vector2. |
divide(Vector2) | Vector2 | Divides this Vector2 by the specified Vector2 and returns a new Vector2. |
divide(float, float) | Vector2 | Divides this Vector2 by the specified X and Y values and returns a new Vector2. |
divide(float) | Vector2 | Divides this Vector2 by the specified value and returns a new Vector2. |
sum(Vector2) | Vector2 | Adds the specified Vector2 to this Vector2 and returns a new Vector2. |
sum(float, float) | Vector2 | Adds the specified X and Y values to this Vector2 and returns a new Vector2. |
sum(float) | Vector2 | Adds the specified value to this Vector2 and returns a new Vector2. |
sumLocal(Vector3) | void | Adds the specified Vector3 (using only X and Y components) to this Vector2 and updates this Vector2. |
sumLocal(Vector2) | void | Adds the specified Vector2 to this Vector2 and updates this Vector2. |
sumLocal(float, float) | void | Adds the specified X and Y values to this Vector2 and updates this Vector2. |
sumLocal(float) | void | Adds the specified value to this Vector2 and updates this Vector2. |
add(Vector2) | Vector2 | Adds the specified Vector2 to this Vector2 and returns a new Vector2. |
add(float, float) | Vector2 | Adds the specified X and Y values to this Vector2 and returns a new Vector2. |
add(float) | Vector2 | Adds the specified value to this Vector2 and returns a new Vector2. |
sub(Vector2) | Vector2 | Subtracts the specified Vector2 from this Vector2 and returns a new Vector2. |
sub(float, float) | Vector2 | Subtracts the specified X and Y values from this Vector2 and returns a new Vector2. |
sub(float) | Vector2 | Subtracts the specified value from this Vector2 and returns a new Vector2. |
subLocal(Vector3) | void | Subtracts the specified Vector3 (using only X and Y components) from this Vector2 and updates this Vector2. |
subLocal(Vector2) | void | Subtracts the specified Vector2 from this Vector2 and updates this Vector2. |
subLocal(float, float) | void | Subtracts the specified X and Y values from this Vector2 and updates this Vector2. |
subLocal(float) | void | Subtracts the specified value from this Vector2 and updates this Vector2. |
subtract(Vector2) | Vector2 | Subtracts the specified Vector2 from this Vector2 and returns a new Vector2. |
subtract(float, float) | Vector2 | Subtracts the specified X and Y values from this Vector2 and returns a new Vector2. |
subtract(float) | Vector2 | Subtracts the specified value from this Vector2 and returns a new Vector2. |
equals(Vector2) | boolean | Checks if this Vector2 is equal to the specified Vector2. |
equals(float, float) | boolean | Checks if this Vector2 is equal to the specified X and Y values. |
equals(float) | boolean | Checks if all components of this Vector2 are equal to the specified value. |
set(Vector2) | void | Sets the components of this Vector2 to the specified Vector2. |
set(float, float) | void | Sets the components of this Vector2 to the specified X and Y values. |
set(float) | void | Sets all components of this Vector2 to the specified value. |
lerp(Vector2, float) | void | Interpolates/smoothes between this Vector2 and the specified Vector2 based on the provided speed/interval and updates this Vector2. |
lerp(float, float, float) | void | Interpolates/smoothes between this Vector2 and the specified X and Y values based on the provided speed/interval and updates this Vector2. |
lerp(float, float) | void | Interpolates/smoothes between this Vector2 and the specified value based on the provided speed/interval and updates this Vector2. |
lerpInSeconds(Vector2, float) | void | Interpolates/smoothes between this Vector2 and the specified Vector2 based on the provided speed/interval in one second and updates this Vector2. |
lerpInSeconds(float, float, float) | void | Interpolates/smoothes between this Vector2 and the specified X and Y values based on the provided speed/interval in one second and updates this Vector2. |
lerpInSeconds(float, float) | void | Interpolates/smoothes between this Vector2 and the specified value based on the provided speed/interval in one second and updates this Vector2. |
blend(Vector2, float) | Vector2 | Blends between this Vector2 and the specified Vector2 based on the provided blend factor (0 to 1) and updates this Vector2. |
blend(float, float, float) | Vector2 | Blends between this Vector2 and the specified X and Y values based on the provided blend factor (0 to 1) and updates this Vector2. |
blend(float, float) | Vector2 | Blends between this Vector2 and the specified value based on the provided blend factor (0 to 1) and updates this Vector2. |
blendLocal(Vector2, float) | void | Blends between this Vector2 and the specified Vector2 based on the provided blend factor (0 to 1) and updates this Vector2. |
blendLocal(float, float, float) | void | Blends between this Vector2 and the specified X and Y values based on the provided blend factor (0 to 1) and updates this Vector2. |
blendLocal(float, float) | void | Blends between this Vector2 and the specified value based on the provided blend factor (0 to 1) and updates this Vector2. |
normalize() | Vector2 | Returns a normalized copy of this Vector2 (length equals 1). |
normalizeLocal() | void | Normalizes this Vector2 (sets its length to 1). |
rotateLocal(float) | void | Rotates this Vector2 by the specified angle (in degrees) and updates this Vector2. |
length() | float | Returns the length (magnitude) of this Vector2. |
sqrLength() | float | Returns the squared length of this Vector2. Faster than length() as it doesn't use a square root; useful for comparing distances. |
distance(Vector2) | float | Returns the distance between this Vector2 and the specified Vector2. |
sqrDistance(Vector2) | float | Returns the squared distance between this Vector2 and the specified Vector2. Faster than distance() as it doesn't use a square root; useful for comparing distances. |
dot(Vector2) | float | Returns the dot product of this Vector2 and the specified Vector2. |
dot(float, float) | float | Returns the dot product of this Vector2 and the specified X and Y values. |
dot(float) | float | Returns the dot product of this Vector2 and the specified value, used for both components. |
cross(Vector2) | Vector3 | Returns the cross product of this Vector2 and the specified Vector2 as a Vector3. |
cross(float, float) | Vector3 | Returns the cross product of this Vector2 and the specified X and Y values as a Vector3. |
copy() | Vector2 | Returns a copy of this Vector2. |
toString() | String | Returns a String representation of this Vector2. |
toString(int) | String | Returns a String representation of this Vector2 with the specified number of decimal places. |
equals(Object) | boolean | Checks if this Vector2 is equal to the specified object. |
pointerEquals(Object) | boolean | Checks if this Vector2 is the same instance as the specified object. |
notEquals(Object) | boolean | Checks if this Vector2 is not equal to the specified object. |
greaterThan(Object) | boolean | Checks if this Vector2 is greater than the specified object (by magnitude). |
greaterThan(float) | boolean | Checks if this Vector2 is greater than the specified value (by magnitude). |
greaterThan(int) | boolean | Checks if this Vector2 is greater than the specified value (by magnitude). |
greaterThan(long) | boolean | Checks if this Vector2 is greater than the specified value (by magnitude). |
greaterThan(double) | boolean | Checks if this Vector2 is greater than the specified value (by magnitude). |
greaterOrEqualsThan(Object) | boolean | Checks if this Vector2 is greater than or equal to the specified object (by magnitude). |
greaterOrEqualsThan(float) | boolean | Checks if this Vector2 is greater than or equal to the specified value (by magnitude). |
greaterOrEqualsThan(int) | boolean | Checks if this Vector2 is greater than or equal to the specified value (by magnitude). |
greaterOrEqualsThan(long) | boolean | Checks if this Vector2 is greater than or equal to the specified value (by magnitude). |
greaterOrEqualsThan(double) | boolean | Checks if this Vector2 is greater than or equal to the specified value (by magnitude). |
lessThan(Object) | boolean | Checks if this Vector2 is less than the specified object (by magnitude). |
lessThan(float) | boolean | Checks if this Vector2 is less than the specified value (by magnitude). |
lessThan(int) | boolean | Checks if this Vector2 is less than the specified value (by magnitude). |
lessThan(long) | boolean | Checks if this Vector2 is less than the specified value (by magnitude). |
lessThan(double) | boolean | Checks if this Vector2 is less than the specified value (by magnitude). |
lessOrEqualsThan(Object) | boolean | Checks if this Vector2 is less than or equal to the specified object (by magnitude). |
lessOrEqualsThan(float) | boolean | Checks if this Vector2 is less than or equal to the specified value (by magnitude). |
lessOrEqualsThan(int) | boolean | Checks if this Vector2 is less than or equal to the specified value (by magnitude). |
lessOrEqualsThan(long) | boolean | Checks if this Vector2 is less than or equal to the specified value (by magnitude). |
lessOrEqualsThan(double) | boolean | Checks if this Vector2 is less than or equal to the specified value (by magnitude). |
sum(Object) | T | Returns the sum of this Vector2 and the specified object. |
sumEqual(Object) | void | Sums the specified object to this Vector2. |
div(Object) | T | Returns the division of this Vector2 by the specified object. |
divEqual(Object) | void | Divides this Vector2 by the specified object. |
mul(Object) | T | Returns the multiplication of this Vector2 by the specified object. |
mulEqual(Object) | void | Multiplies this Vector2 by the specified object. |
sub(Object) | T | Returns the subtraction of this Vector2 and the specified object. |
subEqual(Object) | void | Subtracts the specified object from this Vector2. |
addAdd() | void | Increments this Vector2 by 1. |
removeRemove() | void | Decrements this Vector2 by 1. |
serializeToString() | String | Returns a String representation of this Vector2 in the format '[X;Y]'. |
deserializeLocal(String) | void | Deserializes a String in the format '[X;Y]' and sets the values to this Vector2. |