# Point

Since: BlackBerry 10.0.0

#include <bb/platform/geo/Point>

To link against this class, add the following line to your .pro file: LIBS += -lbbcascadesmaps

A point in geographic space that is represented by latitude and longitude coordinates in degrees and an altitude coordinate in meters.

## Overview

### Public Functions Index

Point (double lat=0, double lon=0) | |

Point (Point const &src) | |

~Point () | |

double | altitude () const |

AltitudeMode::Type | altitudeMode () const |

bb::platform::geo::BoundingBox | boundingBox () const |

void | invalidate () |

bool | isValid () const |

double | latitude () const |

double | longitude () const |

bool | operator!= (const Point &rhs) const |

Point & | operator+= (const Point &rhs) |

Point & | operator-= (const Point &rhs) |

Point & | operator= (const Point &src) |

bool | operator== (const Point &rhs) const |

bool | set (double lat, double lon) |

bool | setAltitude (double alt) |

bool | setAltitudeMode (AltitudeMode::Type mode) |

bool | setLatitude (double lat) |

bool | setLongitude (double lon) |

## Public Functions

Creates a valid point instance.

Parameters | |
---|---|

lat |
The latitude value (0 default). |

lon |
The longitude value (0 default). |

BlackBerry 10.0.0

Copy constructor.

Parameters | |
---|---|

src |
The object from which to copy information. |

BlackBerry 10.0.0

Destructor.

BlackBerry 10.0.0

### double

Gets the altitude of this point in meters.

BlackBerry 10.0.0

### AltitudeMode::Type

Captures how the altitude attribute should be interpreted.

Default value is AltitudeMode::RelativeToGround.

How the altitude property should be interpreted.

BlackBerry 10.0.0

### bb::platform::geo::BoundingBox

The bounding box of this point.

The bounding box of this point.

BlackBerry 10.0.0

### void

Invalidates this point.

BlackBerry 10.2.0

### bool

Indicates whether this point contains valid information.

BlackBerry 10.2.0

### double

Retrieves the point's latitude in degrees.

BlackBerry 10.0.0

### double

Gets the point's longitude in degrees.

BlackBerry 10.0.0

### bool

Inequality operator.

true if any property is different.

BlackBerry 10.0.0

### Point &

Moves this point by the values given in the parameter.

This takes into consideration latitude, longitude and altitude.

Parameters | |
---|---|

rhs |
The point values that are added to this point. No changes occur if rhs is invalid. If this Point is invalid while rhs is valid, then this becomes equal to rhs. |

A reference to this point.

BlackBerry 10.0.0

### Point &

Moves this point by the values given in the parameter, in a negative direction.

This takes into consideration latitude, longitude and altitude.

Parameters | |
---|---|

rhs |
The point values that are subtracted from this point. No changes occur if rhs is invalid. If this Point is invalid while rhs is valid, then this because a negative copy of rhs. |

A reference to this point.

BlackBerry 10.0.0

### Point &

Assignment operator.

Parameters | |
---|---|

src |
The source object from which to copy information and assign to this object. |

BlackBerry 10.0.0

### bool

Equality operator.

true if all properties are equal.

BlackBerry 10.0.0

### bool

Sets the point's latitude and longitude in degrees.

This will result in a valid Point.

true if the operation resulted in a change.

BlackBerry 10.0.0

### bool

Sets the altitude of this point in meters.

true if the operation resulted in a change.

BlackBerry 10.0.0

### bool

Sets the altitude mode.

The altitude measurement can be relative to the ground (default) or the sea level.

### bool

Sets the point's latitude in degrees.

true if the operation resulted in a change.

BlackBerry 10.0.0

### bool

Sets the point's longitude in degrees.

true if the operation resulted in a change.

BlackBerry 10.0.0