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

#include <cartotype_base.h>

Inheritance diagram for CartoTypeCore::TrackPoint:
CartoTypeCore::Point2< double >

Public Member Functions

 TrackPoint ()=default
 
 TrackPoint (const PointFP &aPoint)
 
- Public Member Functions inherited from CartoTypeCore::Point2< double >
constexpr Point2 () noexcept
 
constexpr Point2 (double aX, double aY) noexcept
 
constexpr Point2 (const Point &aPoint) noexcept
 
bool operator== (const Point2< double > &aPoint) const noexcept
 
bool operator!= (const Point2< double > &aPoint) const noexcept
 
void operator+= (const Point2< double > &aPoint) noexcept
 
void operator-= (const Point2< double > &aPoint) noexcept
 
void operator*= (double aFactor) noexcept
 
bool operator< (const Point2< double > &aPoint) const noexcept
 
bool operator> (const Point2< double > &aPoint) const noexcept
 
double VectorLength () const noexcept
 
double DistanceFrom (const Point2< double > &aOther) const noexcept
 
double CrossProduct (const Point2< double > &aOther) const noexcept
 
Point2 UnitVector () const noexcept
 
Point2 LeftUnitVector () const noexcept
 
Point2 RightUnitVector () const noexcept
 
bool LeftOfVector (const Point2< double > &aPoint) const noexcept
 
bool RightOfVector (const Point2< double > &aPoint) const noexcept
 
Point Rounded () const noexcept
 
Point Rounded64ths () const noexcept
 
void Rotate (double aAngle)
 

Public Attributes

double Time = 0
 
- Public Attributes inherited from CartoTypeCore::Point2< double >
double X
 
double Y
 

Detailed Description

A track point, used when recording points traversed. It combines a point, which by convention is in degrees of longitude and latitude, with a timestamp.

See also
TrackGeometry

Constructor & Destructor Documentation

◆ TrackPoint() [1/2]

CartoTypeCore::TrackPoint::TrackPoint ( )
default

Creates a trackpoint with zero coordinates and a timestamp of zero indicating that the time is unknown.

◆ TrackPoint() [2/2]

CartoTypeCore::TrackPoint::TrackPoint ( const PointFP aPoint)
inline

Creates a track point from a point, giving it a timestamp of zero indicating that the time is unknown.

Member Data Documentation

◆ Time

double CartoTypeCore::TrackPoint::Time = 0

If non-zero, the time in seconds: the number of seconds since 00:00 on the 1st January 1970, UTC.


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