Options
All
• Public
• Public/Protected
• All

# Interface Vector

• Vector
• Vector

## Methods

• NOTE: The second argument is deprecated.

#### Returns Vector

• addScalar(scalar: number): Vector
• Adds the scalar value s to this vector's values.

#### Returns Vector

• addScaledVector(vector: Vector, scale: number): Vector

#### Returns Vector

• addVectors(a: Vector, b: Vector): Vector

### clone

• clone(): Vector
• clone():T;

• copy(v:T):T;

### Optional distanceTo

• distanceTo(v: Vector): number
• NOTE: Vector4 doesn't have the property.

distanceTo(v:T):number;

### Optional distanceToSquared

• distanceToSquared(v: Vector): number
• NOTE: Vector4 doesn't have the property.

distanceToSquared(v:T):number;

### divideScalar

• divideScalar(s: number): Vector
• divideScalar(s:number):T;

### dot

• dot(v: Vector): number
• dot(v:T):T;

### equals

• equals(v: Vector): boolean
• equals(v:T):boolean;

### getComponent

• getComponent(index: number): number

### length

• length(): number
• length():number;

### lengthSq

• lengthSq(): number
• lengthSq():number;

### lerp

• lerp(v: Vector, alpha: number): Vector
• lerp(v:T, alpha:number):T;

### multiplyScalar

• multiplyScalar(s: number): Vector
• multiplyScalar(s:number):T;

• negate():T;

### normalize

• normalize():T;

### set

• set(...args: number[]): Vector

### setComponent

• setComponent(index: number, value: number): Vector

### setLength

• setLength(l: number): Vector
• setLength(l:number):T;

### setScalar

• setScalar(scalar: number): Vector

• sub(v:T):T;

### subVectors

• subVectors(a: Vector, b: Vector): Vector
• subVectors(a:T, b:T):T;