CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | List of all members
CartoTypeCore::CoordSetOfTwoPoints Class Reference

#include <cartotype_base.h>

Inheritance diagram for CartoTypeCore::CoordSetOfTwoPoints:
CartoTypeCore::CoordSet

Public Member Functions

 CoordSetOfTwoPoints (double aX0, double aY0, double aX1, double aY1) noexcept
 
- Public Member Functions inherited from CartoTypeCore::CoordSet
 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
 

Public Attributes

double OwnX [2] = { }
 
double OwnY [2] = { }
 

Additional Inherited Members

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

Detailed Description

A CoordSet consisting of two points.

Constructor & Destructor Documentation

◆ CoordSetOfTwoPoints()

CartoTypeCore::CoordSetOfTwoPoints::CoordSetOfTwoPoints ( double  aX0,
double  aY0,
double  aX1,
double  aY1 
)
inlinenoexcept

Creates a CoordSetOfTwoPoints from two pairs of coordinates.

Member Data Documentation

◆ OwnX

double CartoTypeCore::CoordSetOfTwoPoints::OwnX[2] = { }

The X coordinates.

◆ OwnY

double CartoTypeCore::CoordSetOfTwoPoints::OwnY[2] = { }

The Y coordinates.


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