Public Member Functions | Friends
karto::gps::PointGps Class Reference

#include <Geometry.h>

Inheritance diagram for karto::gps::PointGps:
Inheritance graph
[legend]

List of all members.

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)

Detailed Description

Defines a GPS point

Definition at line 3040 of file Geometry.h.


Constructor & Destructor Documentation

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

Parameters:
latitudelatitude
longitudelongitude

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.


Member Function Documentation

void karto::gps::PointGps::AddOffset ( const PointGps rOffset) [inline]

Adds the given GPS offset to this GPS point

Parameters:
rOffsetamount 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

Parameters:
latitudeamount to offset this GPS point by in the latitude direction
longitudeamount 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

Parameters:
rOtherGPS point
Returns:
distance between this point and the given 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

Parameters:
rOtherGPS point
Returns:
bearing to given GPS point

Definition at line 3113 of file Geometry.h.

Gets the latitude

Returns:
latitude

Definition at line 3075 of file Geometry.h.

Gets the longitude

Returns:
longitude

Definition at line 3093 of file Geometry.h.

const PointGps karto::gps::PointGps::operator+ ( const PointGps rOther) const [inline]

Returns a new GPS point that is the result of component-wise addition of this point and the given point

Parameters:
rOtherGPS point
Returns:
new point that is the component-wise addition of this point and the given point

Definition at line 3204 of file Geometry.h.

const PointGps karto::gps::PointGps::operator- ( const PointGps rOther) const [inline]

Returns a new GPS coordinate that is the result of component-wise subtraction of the given point from this point

Parameters:
rOtherGPS point
Returns:
new point that is the component-wise subtracion of the given point from this point

Definition at line 3214 of file Geometry.h.

void karto::gps::PointGps::SetLatitude ( kt_double  latitude) [inline]

Sets the latitude

Parameters:
latitudenew latitude

Definition at line 3084 of file Geometry.h.

void karto::gps::PointGps::SetLongitude ( kt_double  longitude) [inline]

Sets the longitude

Parameters:
longitudenew longitude

Definition at line 3102 of file Geometry.h.

const String karto::gps::PointGps::ToString ( ) const [inline]

String representation of this GPS point

Returns:
string representation of this GPS point

Reimplemented from karto::Vector2< T >.

Definition at line 3180 of file Geometry.h.


Friends And Related Function Documentation

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.


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


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Mon Oct 6 2014 02:44:18