ZonePoint

From Wherigo Foundation Wiki
Jump to: navigation, search

A ZonePoint is probably intended to represent a vertex of a zone. It is also used to represent arbitrary points. It contains latitude, longitude and altitude. Two ZonePoints could also be compared if latitude, longitude and altitude are equal.

An INVALID_ZONEPOINT is defined as ZonePoint(360,360,360).

Properties

altitude Distance The altitude of the point.
latitude Number. The latitude of the point.
longitude Number. The longitude of the point.

Methods

Clone Returns ZonePoint. Creates a copy of the ZonePoint object.

Constructor

Wherigo.ZonePoint(latitude, longitude, altitude)

latitude Number. The latitude of the point in decimal degrees.
longitude Number. The longitude of the point in decimal degrees.
altitude Number or Distance. The altitude of the point in meters.