Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Vector

Index

Constructors

constructor

  • new Vector(x?: number, y?: number): Vector

Properties

x

x: number

y

y: number

Methods

add

addScalar

  • addScalar(scalar: number): Vector

clone

divideScalar

  • divideScalar(scalar: number): Vector

getAngle

  • getAngle(): number

getMagnitude

  • getMagnitude(): number

multiplyScalar

  • multiplyScalar(scalar: number): Vector

subtract

toUnit

Static from

  • from(angle: number, magnitude: number): Vector

Static sum

Generated using TypeDoc