class Vector3
implements Vector
import { Vector3 } from "https://deno.land/x/threejs_4_deno@v121/src/math/Vector3.js";
3D vector.
Methods
addScalar(s: number): this
addScaledVector(v: Vector3, s: number): this
applyAxisAngle(axis: Vector3, angle: number): this
applyEuler(euler: Euler): this
applyMatrix3(m: Matrix3): this
applyMatrix4(m: Matrix4): this
applyNormalMatrix(m: Matrix3): this
applyQuaternion(q: Quaternion): this
ceil(): this
clampLength(min: number, max: number): this
clampScalar(min: number, max: number): this
deprecated
distanceToManhattan(v: Vector3): numberfloor(): this
fromArray(array: number[], offset?: number): this
Sets this vector's x, y and z value from the provided array.
fromArray(array: ArrayLike<number>, offset?: number): this
Sets this vector's x, y and z value from the provided array-like.
fromBufferAttribute(attribute: BufferAttribute | InterleavedBufferAttribute, index: number): this
getComponent(index: number): number
deprecated
lengthManhattan(): numberComputes Manhattan length of this vector. http://en.wikipedia.org/wiki/Taxicab_geometry
lerpVectors(): this
manhattanDistanceTo(v: Vector3): number
Computes the Manhattan length (distance) from this vector to the given vector v
multiplyVectors(a: Vector3, b: Vector3): this
projectOnPlane(planeNormal: Vector3): this
projectOnVector(v: Vector3): this
round(): this
roundToZero(): this
setComponent(index: number, value: number): this
setFromCylindrical(s: Cylindrical): this
setFromCylindricalCoords(): this
radius: number,
theta: number,
y: number,
setFromMatrix3Column(matrix: Matrix3, index: number): this
setFromMatrixColumn(matrix: Matrix4, index: number): this
setFromMatrixPosition(m: Matrix4): this
setFromMatrixScale(m: Matrix4): this
setFromSpherical(s: Spherical): this
setFromSphericalCoords(): this
r: number,
phi: number,
theta: number,
subScalar(s: number): this
toArray(array?: number[], offset?: number): number[]
Returns an array [x, y, z], or copies x, y and z into the provided array.
toArray(array: ArrayLike<number>, offset?: number): ArrayLike<number>
Copies x, y and z into the provided array-like.
transformDirection(m: Matrix4): this