Route-Map
Loading...
Searching...
No Matches
Node Struct Reference

Структура, представляющая узел в графе маршрута. More...

#include <route.h>

Public Member Functions

 Node (int x, int y, double cost, int heuristic, Node *p=nullptr)
 Конструктор для создания узла.
 

Public Attributes

QPointF Point
 
double cost
 
int heuristic
 
Nodeparent
 

Detailed Description

Структура, представляющая узел в графе маршрута.

Constructor & Destructor Documentation

◆ Node()

Node::Node ( int x,
int y,
double cost,
int heuristic,
Node * p = nullptr )
inline

Конструктор для создания узла.

Parameters
xКоордината x узла.
yКоордината y узла.
costСтоимость достижения узла.
heuristicЭвристическая оценка расстояния до цели.
pУказатель на корень узла.

Member Data Documentation

◆ cost

double Node::cost

Стоимость достижения узла.

◆ heuristic

int Node::heuristic

Эвристическая оценка расстояния до цели.

◆ parent

Node* Node::parent

Указатель на родителя узла

◆ Point

QPointF Node::Point

Координаты точки узла.


The documentation for this struct was generated from the following file: