API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfacePrunedExpansion
@codexo/exojs-pathfinding / pathfinding / stable
A parent-dependent successor generator that prunes symmetric alternatives without losing optimality - the shape jump-point search takes. Obtained from NavigationSpace.pruning for the duration of one search.
0
props
2
methods
0
events
Import
import { PrunedExpansion } from '@codexo/exojs-pathfinding'A parent-dependent successor generator that prunes symmetric alternatives without losing optimality - the shape jump-point search takes.
Obtained from NavigationSpace.pruning for the duration of one search.
Methods2
expand(from: number, to: number, out: number[]): voidAppends the nodes strictly between from and to, then to itself, to out - turning a path of pruned successors back into a contiguous one.
successors(node: number, parent: number, goal: number, outNodes: Int32Array, outCosts: Float64Array): numberWrites the pruned successors of node, reached from parent (-1 for the start node), into the buffers and returns how many were written. The successors may lie several nodes away; expand fills in what lies between.
Source