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
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def getAltitude: Optional[Int]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()