#include <cartotype_base.h>
|
int32_t | X { 0 } |
|
int32_t | Y { 0 } |
|
A point in two-dimensional space.
◆ Point() [1/3]
constexpr CartoTypeCore::Point::Point |
( |
| ) |
|
|
inlineconstexprnoexcept |
Creates a point with coordinates (0,0).
◆ Point() [2/3]
constexpr CartoTypeCore::Point::Point |
( |
int32_t |
aX, |
|
|
int32_t |
aY |
|
) |
| |
|
inlineconstexprnoexcept |
Creates a point, specifying coordinates.
◆ Point() [3/3]
Creates a Point by reading it from serialized form.
◆ ComparisonValue()
constexpr uint64_t CartoTypeCore::Point::ComparisonValue |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Returns a single number which can be used to sort points into order.
◆ operator!=()
constexpr bool CartoTypeCore::Point::operator!= |
( |
const Point & |
aPoint | ) |
const |
|
inlineconstexprnoexcept |
◆ operator+=()
void CartoTypeCore::Point::operator+= |
( |
const Point & |
aPoint | ) |
|
|
inlinenoexcept |
Offsets a point by another point, treated as a positive vector.
◆ operator-=()
void CartoTypeCore::Point::operator-= |
( |
const Point & |
aPoint | ) |
|
|
inlinenoexcept |
Offsets a point by another point, treated as a negative vector.
◆ operator<()
constexpr bool CartoTypeCore::Point::operator< |
( |
const Point & |
aPoint | ) |
const |
|
inlineconstexprnoexcept |
The less-than operator, ordering points by x coordinate, then y coordinate.
◆ operator==()
constexpr bool CartoTypeCore::Point::operator== |
( |
const Point & |
aPoint | ) |
const |
|
inlineconstexprnoexcept |
◆ operator>()
constexpr bool CartoTypeCore::Point::operator> |
( |
const Point & |
aPoint | ) |
const |
|
inlineconstexprnoexcept |
The greater-than operator, ordering points by x coordinate, then y coordinate.
◆ Write()
void CartoTypeCore::Point::Write |
( |
OutputStream & |
aOutput | ) |
const |
int32_t CartoTypeCore::Point::X { 0 } |
int32_t CartoTypeCore::Point::Y { 0 } |
The documentation for this class was generated from the following files:
- cartotype_base.h
- cartotype_base.cpp