Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Vector

Hierarchy

  • Vector

Index

Constructors

constructor

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

Properties

Readonly x

x: number

Readonly y

y: number

Methods

Static add

Static centroid

Static distance

Static divide

Static len

Static multiply

Static radius

  • radius(...vertices: Vector[]): number
  • Calcutes the radius from a set of vertices that are placed on a circle

    Parameters

    Returns number

Static round

Static scale

Static subtract

Generated using TypeDoc