Constructors
constructor
- new Vector2(x?: number, y?: number): Vector2
-
Parameters
-
Default value x: number = 0
-
Default value y: number = 0
Properties
Private c
c: Array<number> = [0,0]
Accessors
x
- get x(): number
- set x(x: number): void
-
Returns number
-
Parameters
Returns void
y
- get y(): number
- set y(y: number): void
-
Returns number
-
Parameters
Returns void
Methods
equals
-
Parameters
Returns boolean
get
-
Parameters
Returns number
getCoordinates
- getCoordinates(): Array<number>
getSquaredLength
- getSquaredLength(): number
Static cross
-
Parameters
Returns number
Static distance
-
Parameters
Returns number
Static dot
-
Parameters
Returns number