Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Vec2(x: number, y: number): Vec2

Properties

Readonly x

x: number

Readonly y

y: number

Methods

absdiff

add

  • Parameters

    • otherVec: Vec

    Returns Vec

at

  • at(index: number): number
  • Parameters

    • index: number

    Returns number

cross

div

  • div(s: number): Vec
  • Parameters

    • s: number

    Returns Vec

exp

hDiv

hMul

mean

mul

  • mul(s: number): Vec
  • Parameters

    • s: number

    Returns Vec

norm

  • norm(): number
  • Returns number

sqrt

sub

  • Parameters

    • otherVec: Vec

    Returns Vec