Readonly
isRead-only flag to check if a given object is of type Vector.
Adds the scalar value s to this vector's values.
addVectors(a:T, b:T):T;
clone():T;
Optional
distanceNOTE: Vector4 doesn't have the property.
distanceTo(v:T):number;
Optional
distanceNOTE: Vector4 doesn't have the property.
distanceToSquared(v:T):number;
divideScalar(s:number):T;
dot(v:T):T;
equals(v:T):boolean;
length():number;
lengthSq():number;
multiplyScalar(s:number):T;
negate():T;
normalize():T;
Rest
...args: number[]setLength(l:number):T;
subVectors(a:T, b:T):T;
Abstract interface of Vector2, Vector3 and Vector4.
Currently the members of Vector is NOT type safe because it accepts different typed vectors.
Those definitions will be changed when TypeScript innovates Generics to be type safe.
Example