Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Grid

Hierarchy

  • Grid

Index

Methods

Static create

  • create(basex: number, basey: number, width: number, height: number, density: number): Grid

Static fromBuffer

  • fromBuffer(buffer: Buffer): Grid

actual

  • actual(x: number, y: number): Vector2

at

  • at(i: number): Node

createBuffer

  • createBuffer(): Buffer

get

  • get(x: number, y: number): Node

nearest

  • nearest(x: number, y: number): Node

reset

  • reset(): void

set

  • set(x: number, y: number): void

unset

  • unset(x: number, y: number): void

Accessors

actual_height

  • get actual_height(): number

actual_width

  • get actual_width(): number

Properties

Readonly basex

basex: number

Readonly basey

basey: number

Readonly density

density: number

dirty

dirty: Set<Node>

Readonly height

height: number

nodes

nodes: Node[][]

pathid

pathid: number

Readonly width

width: number

Constructors

constructor

  • new Grid(nodes: Node[][], basex: number, basey: number, width: number, height: number, density: number): Grid

Generated using TypeDoc