Class/Object

com.github.tsingjyujing.geo.element.immutable

GeoPoint

Related Docs: object GeoPoint | package immutable

Permalink

case class GeoPoint(longitude: Double, latitude: Double) extends IGeoPoint with Product with Serializable

Get a immutable geo point

Linear Supertypes
Product, Equals, IGeoPoint, Serializable, Serializable, GeoJSONable, GeoDistanceMeasurable[IGeoPoint], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GeoPoint
  2. Product
  3. Equals
  4. IGeoPoint
  5. Serializable
  6. Serializable
  7. GeoJSONable
  8. GeoDistanceMeasurable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GeoPoint(longitude: Double, latitude: Double)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(x: IVector2): IGeoPoint

    Permalink
    Definition Classes
    IGeoPoint
  4. def -(x: IGeoPoint): IVector2

    Permalink
    Definition Classes
    IGeoPoint
  5. def -(x: IVector2): IGeoPoint

    Permalink
    Definition Classes
    IGeoPoint
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  9. def directionTo(point: IGeoPoint): Double

    Permalink

    Get the direction from this to target point in unit of Degree

    Get the direction from this to target point in unit of Degree

    North: 0/360 East: 90 South: 180 West: 270

    point

    target point

    Definition Classes
    IGeoPoint
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. final def geoTo(point: IGeoPoint): Double

    Permalink

    Get distance from this to point or point to this (should be same)

    Get distance from this to point or point to this (should be same)

    point

    geo point

    Definition Classes
    IGeoPointGeoDistanceMeasurable
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. def getLatitude: Double

    Permalink

    Get latitude recommended in WGS84 format

    Get latitude recommended in WGS84 format

    returns

    Latitude in degree

    Definition Classes
    GeoPointIGeoPoint
  14. def getLongitude: Double

    Permalink

    Get longitude recommended in WGS84 format

    Get longitude recommended in WGS84 format

    returns

    Longitude in degree

    Definition Classes
    GeoPointIGeoPoint
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val latitude: Double

    Permalink
  17. val longitude: Double

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toGeoJSON: JSONObject

    Permalink

    Get scala original JSON object, JSON object deprecated in Scala 2.12 but still using in 2.10

    Get scala original JSON object, JSON object deprecated in Scala 2.12 but still using in 2.10

    Definition Classes
    IGeoPointGeoJSONable
  23. def toGeoJSONString: String

    Permalink
    Definition Classes
    GeoJSONable
  24. final def toIVector2: IVector2

    Permalink

    Get Mercator projection potision as vector2

    Get Mercator projection potision as vector2

    Definition Classes
    IGeoPoint
  25. final def toIVector3: IVector3

    Permalink

    Get vector3 in R3 on 2d sphere

    Get vector3 in R3 on 2d sphere

    Definition Classes
    IGeoPoint
  26. def toString(): String

    Permalink
    Definition Classes
    IGeoPoint → AnyRef → Any
  27. def verifyLatitude: Unit

    Permalink

    Verify is latitude value is legal

    Verify is latitude value is legal

    Attributes
    protected
    Definition Classes
    IGeoPoint
    Annotations
    @throws( ... )
    Exceptions thrown

    AssertionError verify failed

  28. def verifyLongitude: Unit

    Permalink

    Verify is longitude value is legal

    Verify is longitude value is legal

    Attributes
    protected
    Definition Classes
    IGeoPoint
    Annotations
    @throws( ... )
    Exceptions thrown

    AssertionError verify failed

  29. def verifyValues: Unit

    Permalink

    Verify is latitude & longitude values are legal

    Verify is latitude & longitude values are legal

    Attributes
    protected
    Definition Classes
    IGeoPoint
    Annotations
    @throws( ... )
    Exceptions thrown

    AssertionError verify failed

  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def ~>(point: IGeoPoint): Double

    Permalink

    Alias of geoTo

    Alias of geoTo

    Definition Classes
    GeoDistanceMeasurable

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Product

Inherited from Equals

Inherited from IGeoPoint

Inherited from Serializable

Inherited from Serializable

Inherited from GeoJSONable

Inherited from AnyRef

Inherited from Any

Ungrouped