Struct map18xx::tile::Path
[−]
[src]
pub struct Path { pub start_control: Option<Coordinate>, pub end_control: Option<Coordinate>, // some fields omitted }
Path on the tile
A path is a line section that goes between start point
and end point
.
There are two versions of each point [start|end]
and [start|end]_pos
,
the _pos
variant takes precedence over the non-_pos
version. The
non-_pos
version should always be a position code, while the _pos
version is a 3D position in hexagon-space.
Fields
start_control: Option<Coordinate>
end_control: Option<Coordinate>
Methods
impl Path
[src]
fn start(&self) -> Vector3<f64>
[src]
Getter that always returns the start coordinate in hexagon-space.
fn end(&self) -> Vector3<f64>
[src]
Getter that always returns the end coordinate in hexagon-space.
fn is_bridge(&self) -> bool
[src]
Whether the is_bridge flag is set
fn radius(&self) -> f64
[src]
The radius of the corner made by the path