CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
|
#include <cartotype_base.h>
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 |
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.
|
default |
Creates a trackpoint with zero coordinates and a timestamp of zero indicating that the time is unknown.
|
inline |
Creates a track point from a point, giving it a timestamp of zero indicating that the time is unknown.
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.