Constructors
constructor
- new Vector(x?: number, y?: number): Vector
-
Parameters
-
Default value x: number = 0
-
Default value y: number = 0
Methods
multiply
- multiply(s: number): void
setTo
- setTo(x: number, y: number): void
Static angle
-
Parameters
Returns number
Static dotProduct
-
Parameters
Returns number
Static projection
-
Parameters
Returns number
获取当前向量的模