Constructors
constructor
- new Vector2(x?: number, y?: number): Vector2
-
Parameters
-
x: number = 0
-
y: number = x
Methods
addXY
- addXY(x: number, y?: number): Vector2
-
length
- length(): number
-
Returns number
lengthIsBelow
- lengthIsBelow(distance: number): boolean
-
Returns boolean
subtractXY
- subtractXY(x: number, y?: number): Vector2
-
inplace, returns this