Constructors
constructor
Parameters
Parameters
Optional x: number
Optional y: number
Properties
x
x: number
y
y: number
Methods
add
Parameters
Parameters
copy
dist
- dist(vec: Vector): number
- dist(x: number, y: number): number
Parameters
Returns number
Parameters
Returns number
dot
- dot(vec: Vector): number
- dot(x: number, y: number): number
Parameters
Returns number
Parameters
Returns number
equals
- equals(vec: Vector): boolean
- equals(x: number, y: number): boolean
Parameters
Returns boolean
Parameters
Returns boolean
len
Returns number
lenSqr
Returns number
lerp
- lerp(vec: Vector, percent?: number): Vector
- lerp(x: number, y: number, percent?: number): Vector
Parameters
Parameters
x: number
y: number
Optional percent: number
nlerp
- nlerp(vec: Vector, percent?: number): Vector
- nlerp(x: number, y: number, percent?: number): Vector
Parameters
Parameters
x: number
y: number
Optional percent: number
normalize
scale
Parameters
sub
Parameters
Parameters