Properties
Static
Readonly
Directions
Accessors
length
- get length(): number
Returns number
Methods
angle
- angle(): number
Returns number
approximatelyEqual
- approximatelyEqual(other, epsilon?): boolean
Parameters
- other: Vector2
- epsilon: number = 0.001
Returns boolean
distance
- distance(other): number
Returns number
toString
- toString(): string
Returns string
toSvgString
- toSvgString(): string
Returns string
Static
approximatelyEqual
- approximatelyEqual(a, b, epsilon?): boolean
Returns boolean
Static
distance
- distance(a, b): number
Returns number
Static
dot
- dot(a, b): number
Returns number