Location Class Reference

[Kflog Index] [Kflog Hierarchy] [Headers]


Location is used to represent the Cartesian-coordinates More...

#include <mapobject.h>

Public Members

Private Members


Detailed Description

Location is used to represent the Cartesian-coordinates. The resolution used here is 1/10,000th of a minute (approx 0.1852m on a great circle). We decided to use minutes instead of seconds as base unit, because our GPS-Logger used them likewise ;-) Therefore: 1 second := ~167 1 minute := 10,000 1 degree := 600,000 Earth's circumference (1 degree * 360) is 216,000,000, so we can use 32 bit integer vars to represent these values! Positive values mean North or East and negative values South or West


Location() [public]

creates an empty Location-object.

Location(long latitude, long longitude) [public]

creates a new Location-object with the given coordinates.

~Location() [public]

destroys the object

void setLat(long latitude) [public]

sets the latitude

void setLon(long longitude) [public]

sets the lonitude

long getLat() [public]

returns the latitude

long getLon() [public]

returns the lonitude

long latitude[private]

the latitude ;-)

long longitude[private]

the londitude ;-)


Documentation generated by heiner@Tharbad on Mon Jul 26 18:16:35 CEST 1999
Kdoc