Eulergraph
Preparing search index...
routing/algorithms/aStar/AStarPathFinder
AStarPathFinder
Class AStarPathFinder
Hierarchy
EventEmitter
AStarPathFinder
Index
Constructors
constructor
Properties
grid
Graph
grid
Size
is
Disabled
logger
log
Points
scene
with
Debug
Methods
dispose
draw
Debug
find
Path
get
Real
Position
By
Index
update
Graph
Constructors
constructor
new
AStarPathFinder
(
scene
:
Scene2D
,
gridSize
?:
number
,
margin
?:
number
,
)
:
AStarPathFinder
Parameters
scene
:
Scene2D
gridSize
:
number
= ORTHO_LAYOUT_GRID
margin
:
number
= ORTHO_LAYOUT_MARGIN
Returns
AStarPathFinder
Properties
grid
Graph
gridGraph
:
GridGraph
= ...
grid
Size
gridSize
:
number
is
Disabled
isDisabled
:
boolean
= false
logger
logger
:
Logger
= ...
log
Points
logPoints
:
{
color
:
string
;
point
:
Point
;
r
:
number
}
[]
= []
scene
scene
:
Scene2D
|
null
with
Debug
withDebug
:
{
bbox
:
boolean
;
grid
:
boolean
;
log
:
boolean
}
= ...
Methods
dispose
dispose
()
:
void
Returns
void
draw
Debug
drawDebug
(
ctx
?:
CanvasRenderingContext2D
|
null
)
:
void
Parameters
Optional
ctx
:
CanvasRenderingContext2D
|
null
Returns
void
find
Path
findPath
(
start
:
Point
,
end
:
Point
)
:
Point
[]
Находит путь между двумя точками с помощью алгоритма A*
Parameters
start
:
Point
end
:
Point
Returns
Point
[]
get
Real
Position
By
Index
getRealPositionByIndex
(
index
:
number
)
:
Point
Parameters
index
:
number
Returns
Point
update
Graph
updateGraph
(
children
:
GraphicElement
[]
)
:
void
Parameters
children
:
GraphicElement
[]
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
grid
Graph
grid
Size
is
Disabled
logger
log
Points
scene
with
Debug
Methods
dispose
draw
Debug
find
Path
get
Real
Position
By
Index
update
Graph
Eulergraph
Loading...
Находит путь между двумя точками с помощью алгоритма A*