Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Node

Hierarchy

  • Node

Index

Accessors

actual

f

  • get f(): number

grid

  • get grid(): Grid
  • set grid(grid: Grid): void

Properties

blocked

blocked: boolean

closed

closed: boolean

Optional g

g: number

Optional h

h: number

opened

opened: boolean

Optional parent

parent: Node

weight

weight: number

x

x: number

y

y: number

Constructors

constructor

  • new Node(_grid: Grid, x: number, y: number, blocked: boolean, weight?: number): Node

Methods

getAdjacent

  • getAdjacent(): Node[]

getNeighbors

  • getNeighbors(): Node[]

getPath

isWithin

  • isWithin(node: Node, radius: number): boolean

Generated using TypeDoc