libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::GroundTile::Coord Struct Reference

A Coordinate for a point in a ground tile path. More...

#include <GroundTile.h>

Public Member Functions

 Coord ()=default
 Coord (uint16_t x, uint16_t y, bool coast)
bool operator== (const Coord &coord) const
void Set (uint16_t x, uint16_t y, bool coast)

Public Attributes

bool coast
uint16_t x
uint16_t y

Static Public Attributes

static const uint16_t CELL_MAX =32767

Detailed Description

A Coordinate for a point in a ground tile path.

Constructor & Destructor Documentation

◆ Coord() [1/2]

osmscout::GroundTile::Coord::Coord ( )
default

Referenced by operator==().

◆ Coord() [2/2]

osmscout::GroundTile::Coord::Coord ( uint16_t x,
uint16_t y,
bool coast )
inline

References coast, x, and y.

Member Function Documentation

◆ operator==()

bool osmscout::GroundTile::Coord::operator== ( const Coord & coord) const
inline

References coast, Coord(), x, and y.

◆ Set()

void osmscout::GroundTile::Coord::Set ( uint16_t x,
uint16_t y,
bool coast )
inline

References coast, x, and y.

Member Data Documentation

◆ CELL_MAX

const uint16_t osmscout::GroundTile::Coord::CELL_MAX =32767
static

◆ coast

bool osmscout::GroundTile::Coord::coast

Referenced by Coord(), operator==(), and Set().

◆ x

uint16_t osmscout::GroundTile::Coord::x

Referenced by Coord(), operator==(), and Set().

◆ y

uint16_t osmscout::GroundTile::Coord::y

Referenced by Coord(), operator==(), and Set().


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