CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoType::TCoordPair Class Reference

#include <cartotype_base.h>

Inheritance diagram for CartoType::TCoordPair:
CartoType::TCoordSet

Public Member Functions

 TCoordPair (double aX, double aY) noexcept
 
- Public Member Functions inherited from CartoType::TCoordSet
 TCoordSet (const double *aX, const double *aY, size_t aCount) noexcept
 
 TCoordSet (const double *aCoordArray, size_t aCount) noexcept
 
template<class point_t >
 TCoordSet (const point_t *aPointArray, size_t aCount) noexcept
 
template<class point_t >
 TCoordSet (const std::vector< point_t > &aPointArray) noexcept
 
double X (size_t aIndex) const noexcept
 
double Y (size_t aIndex) const noexcept
 
TPointFP 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
 

Public Attributes

double m_own_x
 
double m_own_y
 

Additional Inherited Members

- Protected Member Functions inherited from CartoType::TCoordSet
constexpr TCoordSet () noexcept
 
- Protected Attributes inherited from CartoType::TCoordSet
const double * m_x { nullptr }
 
const double * m_y { nullptr }
 
size_t m_stride { 0 }
 
size_t m_count { 0 }
 

Detailed Description

A TCoordSet consisting of a single point.

Constructor & Destructor Documentation

◆ TCoordPair()

CartoType::TCoordPair::TCoordPair ( double  aX,
double  aY 
)
inlinenoexcept

Creates a TCoordPair from an X and a Y coordinate.

Member Data Documentation

◆ m_own_x

double CartoType::TCoordPair::m_own_x

The X coordinate.

◆ m_own_y

double CartoType::TCoordPair::m_own_y

The Y coordinate.


The documentation for this class was generated from the following file: