import { type Vector } from "https://deno.land/x/threejs_4_deno@v121/src/Three.js";
Examples
const v:THREE.Vector = new THREE.Vector3();
v.addVectors(new THREE.Vector2(0, 1), new THREE.Vector2(2, 3)); // invalid but compiled successfully
const v:THREE.Vector = new THREE.Vector3(); v.addVectors(new THREE.Vector2(0, 1), new THREE.Vector2(2, 3)); // invalid but compiled successfully
Methods
copy(v: Vector): this
copy(v:T):T;
add(v: Vector): this
NOTE: The second argument is deprecated.
add(v:T):T;
addScaledVector(vector: Vector, scale: number): this
sub(v: Vector): this
sub(v:T):T;
dot(v: Vector): number
dot(v:T):T;
optional
distanceTo(v: Vector): numberNOTE: Vector4 doesn't have the property.
distanceTo(v:T):number;
optional
distanceToSquared(v: Vector): numberNOTE: Vector4 doesn't have the property.
distanceToSquared(v:T):number;
lerp(v: Vector, alpha: number): this
lerp(v:T, alpha:number):T;
equals(v: Vector): boolean
equals(v:T):boolean;