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::TCoordSetOfTwoPoints Class Reference

#include <cartotype_base.h>

Inheritance diagram for CartoType::TCoordSetOfTwoPoints:
CartoType::TCoordSet

Public Member Functions

 TCoordSetOfTwoPoints (double aX0, double aY0, double aX1, double aY1) 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 [2] = { }
 
double m_own_y [2] = { }
 

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 two points.

Constructor & Destructor Documentation

◆ TCoordSetOfTwoPoints()

CartoType::TCoordSetOfTwoPoints::TCoordSetOfTwoPoints ( double  aX0,
double  aY0,
double  aX1,
double  aY1 
)
inlinenoexcept

Creates a TCoordSetOfTwoPoints from two pairs of coordinates.

Member Data Documentation

◆ m_own_x

double CartoType::TCoordSetOfTwoPoints::m_own_x[2] = { }

The X coordinates.

◆ m_own_y

double CartoType::TCoordSetOfTwoPoints::m_own_y[2] = { }

The Y coordinates.


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