#include <cartotype_base.h>
|
double & | X (size_t aIndex) const |
|
double & | Y (size_t aIndex) const |
|
| CoordSet (const double *aX, const double *aY, size_t aCount) noexcept |
|
| CoordSet (const double *aCoordArray, size_t aCount) noexcept |
|
template<class point_t > |
| CoordSet (const point_t *aPointArray, size_t aCount) noexcept |
|
template<class point_t > |
| CoordSet (const std::vector< point_t > &aPointArray) noexcept |
|
constexpr | CoordSet () noexcept |
|
| CoordSet (const double *aX, const double *aY, size_t aCount) noexcept |
|
| CoordSet (const double *aCoordArray, size_t aCount) noexcept |
|
template<class point_t > |
| CoordSet (const point_t *aPointArray, size_t aCount) noexcept |
|
template<class point_t > |
| CoordSet (const std::vector< point_t > &aPointArray) noexcept |
|
double | X (size_t aIndex) const noexcept |
|
double | Y (size_t aIndex) const noexcept |
|
PointFP | Point (size_t aIndex) const noexcept |
|
size_t | Count () const noexcept |
|
double | DistanceFromPoint (bool aIsPolygon, double aX, double aY, double &aNearestX, double &aNearestY) const noexcept |
|
bool | PolygonContains (double aX, double aY) const noexcept |
|
A set of modifiable coordinate pairs.
◆ CoordSet() [1/5]
constexpr CartoTypeCore::CoordSet::CoordSet |
( |
| ) |
|
|
inlineconstexprnoexcept |
Creates an empty coordinate set.
◆ CoordSet() [2/5]
CartoTypeCore::CoordSet::CoordSet |
( |
const double * |
aCoordArray, |
|
|
size_t |
aCount |
|
) |
| |
|
inlinenoexcept |
Creates a coordinate set from an array of aCount numbers, arranged in x,y pairs; aCount must be an even number.
◆ CoordSet() [3/5]
CartoTypeCore::CoordSet::CoordSet |
( |
const double * |
aX, |
|
|
const double * |
aY, |
|
|
size_t |
aCount |
|
) |
| |
|
inlinenoexcept |
Creates a coordinate set from two separate contiguous arrays of points. aX points to a contiguous array of X coordinates. aY points to a contiguous array of Y coordinates. aCount is the number of coordinate pairs.
◆ CoordSet() [4/5]
template<class point_t >
CartoTypeCore::CoordSet::CoordSet |
( |
const point_t * |
aPointArray, |
|
|
size_t |
aCount |
|
) |
| |
|
inlinenoexcept |
Creates a coordinate set from an array of aCount point objects.
◆ CoordSet() [5/5]
template<class point_t >
CartoTypeCore::CoordSet::CoordSet |
( |
const std::vector< point_t > & |
aPointArray | ) |
|
|
inlinenoexcept |
Creates a coordinate set from a vector of point objects.
◆ X()
double & CartoTypeCore::WritableCoordSet::X |
( |
size_t |
aIndex | ) |
const |
|
inline |
Returns a writable reference to the X coordinate at a specified index.
◆ Y()
double & CartoTypeCore::WritableCoordSet::Y |
( |
size_t |
aIndex | ) |
const |
|
inline |
Returns a writable reference to the Y coordinate at a specified index.
The documentation for this class was generated from the following file: