Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Vector

Index

Constructors

constructor

Properties

x

x: number

y

y: number

Methods

add

angle

  • angle(): any
  • angle(v: Vector): number
  • Returns any

  • Parameters

    Returns number

copy

cross

  • Parameters

    Returns number

distance

  • Parameters

    Returns number

distanceSq

  • distanceSq(v: Vector): number
  • Parameters

    Returns number

div

  • Parameters

    • n: number

    Returns Vector

dot

  • Parameters

    Returns number

invert

limit

  • Parameters

    • n: number

    Returns Vector

mag

  • mag(): number
  • Returns number

magSq

  • magSq(): number
  • Returns number

mult

  • Parameters

    • n: number

    Returns Vector

normalize

perpendicular

projection

reflect

rotate

  • Parameters

    • a: any

    Returns Vector

sub