import { Vector2 } from "https://deno.land/x/threejs_4_deno@v121/src/math/Vector2.js";
2D vector.
( class Vector2 implements Vector )
Methods
Multiplies this vector (with an implicit 1 as the 3rd component) by m.
If this vector's x or y value is greater than the max vector's x or y value, it is replaced by the corresponding value. If this vector's x or y value is less than the min vector's x or y value, it is replaced by the corresponding value.
If this vector's length is greater than the max value, it is replaced by the max value. If this vector's length is less than the min value, it is replaced by the min value.
If this vector's x or y values are greater than the max value, they are replaced by the max value. If this vector's x or y values are less than the min value, they are replaced by the min value.
Sets this vector's x and y value from the provided array.
Sets this vector's x and y value from the provided array-like.
Sets this vector's x and y values from the attribute.
Linearly interpolates between this vector and v, where alpha is the distance along the line - alpha = 0 will be this vector, and alpha = 1 will be v.
Sets this vector to be the vector linearly interpolated between v1 and v2 where alpha is the distance along the line connecting the two vectors - alpha = 0 will be v1, and alpha = 1 will be v2.
Computes the Manhattan length (distance) from this vector to the given vector v
If this vector's x or y value is less than v's x or y value, replace that value with the corresponding max value.
If this vector's x or y value is greater than v's x or y value, replace that value with the corresponding min value.
Rotates the vector around center by angle radians.
The components of the vector are rounded towards zero (up if negative, down if positive) to an integer value.
Returns an array [x, y], or copies x and y into the provided array.
Copies x and y into the provided array-like.