case class AbsoluteGeoCoordinate(longitude: Int, latitude: Int, altitude: Option[Int]) extends Product with Serializable
An absolute geocoordinate in WGS84 using 24 bit-resolution. The integer (intAngle) representation
for the latitude and longitude can be calculated from a double representation in degrees
(degrees) by scaling and rounding:
intAngle = Math.round(degrees * Math.pow(2, 24) / 360)
In the interest of comparability a specific rounding rule is suggested in the standard:
intAngle = 0.5 * Math.signum(degrees) + degrees * Math.pow(2, 24) / 360
The conversion back can be done as follows:
degrees = intAngle * 360 / Math.pow(2, 24))
- longitude
 The longitude value.
- latitude
 The latitude value.
- altitude
 An optional elevation value in meters above sea level.
- Alphabetic
 - By Inheritance
 
- AbsoluteGeoCoordinate
 - Serializable
 - Product
 - Equals
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - Protected
 
Instance Constructors
Value Members
-   final  def !=(arg0: Any): Boolean
- Definition Classes
 - AnyRef → Any
 
 -   final  def ##: Int
- Definition Classes
 - AnyRef → Any
 
 -   final  def ==(arg0: Any): Boolean
- Definition Classes
 - AnyRef → Any
 
 -  val altitude: Option[Int]
 -   final  def asInstanceOf[T0]: T0
- Definition Classes
 - Any
 
 -    def clone(): AnyRef
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
 
 -   final  def eq(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -  def getAltitude: Optional[Int]
 -   final  def getClass(): Class[_ <: AnyRef]
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -  def getLatitude: Int
 -  def getLongitude: Int
 -   final  def isInstanceOf[T0]: Boolean
- Definition Classes
 - Any
 
 -  val latitude: Int
 -  val longitude: Int
 -   final  def ne(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -   final  def notify(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -   final  def notifyAll(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -    def productElementNames: Iterator[String]
- Definition Classes
 - Product
 
 -   final  def synchronized[T0](arg0: => T0): T0
- Definition Classes
 - AnyRef
 
 -   final  def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException])
 
 -   final  def wait(arg0: Long): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException]) @native()
 
 -   final  def wait(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException])
 
 
Deprecated Value Members
-    def finalize(): Unit
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.Throwable]) @Deprecated
 - Deprecated
 (Since version 9)