Accessors
grid
- get grid(): Grid
- set grid(grid: Grid): void
Constructors
constructor
- new Node(_grid: Grid, x: number, y: number, blocked: boolean, weight?: number): Node
-
Parameters
-
-
x: number
-
y: number
-
blocked: boolean
-
weight: number = 1
Methods
isWithin
- isWithin(node: Node, radius: number): boolean
-
Parameters
Returns boolean