Public Member Functions | |
Path (const Coordinate &from, const Coordinate &to) | |
~Path () | |
const Coordinate & | getFrom () const |
const Coordinate & | getTo () const |
void | setFrom (const Coordinate &from) |
void | setTo (const Coordinate &to) |
long | length () const |
const Coordinate & | direction () const |
std::vector< Coordinate > | route () const |
Definition at line 32 of file Path.h.
Path::Path | ( | const Coordinate & | from, | |
const Coordinate & | to | |||
) |
Constructor
from | Starting point | |
to | Destination |
const Coordinate& Path::getFrom | ( | ) | const |
Getter
const Coordinate& Path::getTo | ( | ) | const |
Getter
void Path::setFrom | ( | const Coordinate & | from | ) |
Setter
from | Sets our start point |
void Path::setTo | ( | const Coordinate & | to | ) |
Setter
to | Sets our destination |
long Path::length | ( | ) | const |
Gets the length of the largest component since all other components can be combined into the largest
const Coordinate& Path::direction | ( | ) | const |
The direction one should travel in from 'from' to reach 'to'
std::vector<Coordinate> Path::route | ( | ) | const |
Retreives the exact path between From to To.