#include <Geometry.h>
Public Member Functions | |
void | AddOffset (const PointGps &rOffset) |
void | AddOffset (kt_double latitude, kt_double longitude) |
kt_double | Distance (const PointGps &rOther) |
kt_double | GetBearing (const PointGps &rOther) |
kt_double | GetLatitude () const |
kt_double | GetLongitude () const |
const PointGps | operator+ (const PointGps &rOther) const |
const PointGps | operator- (const PointGps &rOther) const |
PointGps () | |
PointGps (kt_double latitude, kt_double longitude) | |
PointGps (const PointGps &rOther) | |
void | SetLatitude (kt_double latitude) |
void | SetLongitude (kt_double longitude) |
const String | ToString () const |
Friends | |
KARTO_FORCEINLINE std::ostream & | operator<< (std::ostream &rStream, const PointGps &rPointGps) |
Defines a GPS point
Definition at line 3040 of file Geometry.h.
karto::gps::PointGps::PointGps | ( | ) | [inline] |
GPS point with longitude and latitude of (0, 0)
Definition at line 3046 of file Geometry.h.
karto::gps::PointGps::PointGps | ( | kt_double | latitude, |
kt_double | longitude | ||
) | [inline] |
Construct GPS point with given longitude and latitude
latitude | latitude |
longitude | longitude |
Definition at line 3055 of file Geometry.h.
karto::gps::PointGps::PointGps | ( | const PointGps & | rOther | ) | [inline] |
Copy constructor
Definition at line 3064 of file Geometry.h.
void karto::gps::PointGps::AddOffset | ( | const PointGps & | rOffset | ) | [inline] |
Adds the given GPS offset to this GPS point
rOffset | amount to offset this GPS point by |
Definition at line 3132 of file Geometry.h.
void karto::gps::PointGps::AddOffset | ( | kt_double | latitude, |
kt_double | longitude | ||
) | [inline] |
Adds the given GPS offset to this GPS point
latitude | amount to offset this GPS point by in the latitude direction |
longitude | amount to offset this GPS point by in the longitude direction |
Definition at line 3142 of file Geometry.h.
kt_double karto::gps::PointGps::Distance | ( | const PointGps & | rOther | ) | [inline] |
Distance between this GPS point and the given GPS point Reference: http://code.google.com/p/geopy/wiki/GettingStarted
rOther | GPS point |
Definition at line 3154 of file Geometry.h.
kt_double karto::gps::PointGps::GetBearing | ( | const PointGps & | rOther | ) | [inline] |
Returns bearing to given GPS point Reference: http://www.movable-type.co.uk/scripts/latlong.html
rOther | GPS point |
Definition at line 3113 of file Geometry.h.
kt_double karto::gps::PointGps::GetLatitude | ( | ) | const [inline] |
kt_double karto::gps::PointGps::GetLongitude | ( | ) | const [inline] |
Returns a new GPS point that is the result of component-wise addition of this point and the given point
rOther | GPS point |
Definition at line 3204 of file Geometry.h.
Returns a new GPS coordinate that is the result of component-wise subtraction of the given point from this point
rOther | GPS point |
Definition at line 3214 of file Geometry.h.
void karto::gps::PointGps::SetLatitude | ( | kt_double | latitude | ) | [inline] |
void karto::gps::PointGps::SetLongitude | ( | kt_double | longitude | ) | [inline] |
const String karto::gps::PointGps::ToString | ( | ) | const [inline] |
String representation of this GPS point
Reimplemented from karto::Vector2< T >.
Definition at line 3180 of file Geometry.h.
KARTO_FORCEINLINE std::ostream& operator<< | ( | std::ostream & | rStream, |
const PointGps & | rPointGps | ||
) | [friend] |
Write this GPS point onto output stream
Definition at line 3192 of file Geometry.h.