class Vector4
implements Vector
import { Vector4 } from "https://deno.land/x/threejs_4_deno@v121/src/math/Vector4.js";
4D vector.
( class Vector4 implements Vector )
Methods
addScalar(scalar: number): this
addScaledVector(v: Vector4, s: number): this
applyMatrix4(m: Matrix4): this
ceil(): this
clampScalar(min: number, max: number): this
floor(): this
fromArray(array: number[], offset?: number): this
Sets this vector's x, y, z and w value from the provided array.
fromArray(array: ArrayLike<number>, offset?: number): this
Sets this vector's x, y, z and w value from the provided array-like.
fromBufferAttribute(attribute: BufferAttribute, index: number): this
getComponent(index: number): number
lerpVectors(): this
round(): this
roundToZero(): this
setAxisAngleFromQuaternion(q: Quaternion): this
setAxisAngleFromRotationMatrix(m: Matrix3): this
setComponent(index: number, value: number): this
subScalar(s: number): this
toArray(array?: number[], offset?: number): number[]
Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.
toArray(array: ArrayLike<number>, offset?: number): ArrayLike<number>
Copies x, y, z and w into the provided array-like.