Class/Object

com.github.tsingjyujing.geo.element.mutable

GeoPoint

Related Docs: object GeoPoint | package mutable

Permalink

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

Mutable implementation of IGeoPoint

**Attention**: Avoid using mutable point in algorithms because it may break precomputed data

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: IVector2): Unit

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

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

    Permalink
    Definition Classes
    IGeoPoint
  7. def -=(x: IVector2): Unit

    Permalink
  8. final def ==(arg0: Any): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  11. 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
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. 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
  14. final def getClass(): Class[_]

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

    Permalink

    Get latitude recommended in WGS84 format

    Get latitude recommended in WGS84 format

    returns

    Latitude in degree

    Definition Classes
    GeoPointIGeoPoint
  16. def getLongitude: Double

    Permalink

    Get longitude recommended in WGS84 format

    Get longitude recommended in WGS84 format

    returns

    Longitude in degree

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

    Permalink
    Definition Classes
    Any
  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. def setLatitude(value: Double): Unit

    Permalink
  22. def setLongitude(value: Double): Unit

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. 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
  25. def toGeoJSONString: String

    Permalink
    Definition Classes
    GeoJSONable
  26. final def toIVector2: IVector2

    Permalink

    Get Mercator projection potision as vector2

    Get Mercator projection potision as vector2

    Definition Classes
    IGeoPoint
  27. final def toIVector3: IVector3

    Permalink

    Get vector3 in R3 on 2d sphere

    Get vector3 in R3 on 2d sphere

    Definition Classes
    IGeoPoint
  28. def toString(): String

    Permalink
    Definition Classes
    IGeoPoint → AnyRef → Any
  29. 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

  30. 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

  31. 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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. 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