Constructors
constructor
- new Vector2(x?, y?): Vector2
-
Parameters
-
x: number = 0
-
y: number = 0
Methods
angleTo
- angleTo(v): number
-
Returns number
distanceTo
- distanceTo(v): number
-
Returns number
distanceToSquared
- distanceToSquared(v): number
-
Returns number
dot
- dot(v): number
-
Returns number
equals
- equals(v): boolean
-
Returns boolean
length
- length(): number
-
Returns number
lengthSquared
- lengthSquared(): number
-
Returns number