Constructors
constructor
- new Vector(x?: number, y?: number): Vector
-
Parameters
-
Default value x: number = 0
-
Default value y: number = 0
Methods
addScalar
- addScalar(scalar: number): Vector
divideScalar
- divideScalar(scalar: number): Vector
multiplyScalar
- multiplyScalar(scalar: number): Vector
Static from
- from(angle: number, magnitude: number): Vector
-
Parameters
-
angle: number
-
magnitude: number