Methods
Static create
- create(basex: number, basey: number, width: number, height: number, density: number): Grid
-
Parameters
-
basex: number
-
basey: number
-
width: number
-
height: number
-
density: number
Static fromBuffer
- fromBuffer(buffer: Buffer): Grid
actual
- actual(x: number, y: number): Vector2
get
- get(x: number, y: number): Node
nearest
- nearest(x: number, y: number): Node
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
Readonly height
height: number
Readonly width
width: number
Constructors
constructor
- new Grid(nodes: Node[][], basex: number, basey: number, width: number, height: number, density: number): Grid
-
Parameters
-
nodes: Node[][]
-
basex: number
-
basey: number
-
width: number
-
height: number
-
density: number