Optional
offsetX: numberOptional
offsetY: numberOptional
scaleX: numberOptional
scaleY: numberReadonly
isReadonly
is0
0
0
0
Adds v to this vector.
Copies value of v to this vector.
Computes dot product of this vector and v.
Checks for strict equality of this vector and v.
Linearly interpolate between this vector and v with alpha factor.
Computes the Manhattan length of this vector.
see Taxicab Geometry
is assumed to be normalized
assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled)
Subtracts v from this vector.
Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.
Optional
array: number[](optional) array to store the vector to. If this is not provided, a new array will be created.
Optional
offset: number(optional) optional offset into the array.
The created or provided array.
Optional
array: Vector4TupleOptional
offset: 0Copies x, y, z and w into the provided array-like.
array-like to store the vector to.
Optional
offset: number(optional) optional offset into the array-like.
The provided array-like.
Static
identity
Describes a transformation of a point in 2D space without rotation. Typically used for to transform texture coordinates.