Object/Class

com.mapcode.scala

Point

Related Docs: class Point | package scala

Permalink

object Point

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Point
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val EARTH_CIRCUMFERENCE_X: Double

    Permalink
  5. val EARTH_CIRCUMFERENCE_Y: Double

    Permalink
  6. val EARTH_RADIUS_X_METERS: Double

    Permalink
  7. val EARTH_RADIUS_Y_METERS: Double

    Permalink
  8. val LAT_DEG_MAX: Double

    Permalink
  9. val LAT_DEG_MIN: Double

    Permalink
  10. val LON_DEG_MAX: Double

    Permalink
  11. val LON_DEG_MIN: Double

    Permalink
  12. val METERS_PER_DEGREE_LAT: Double

    Permalink
  13. val METERS_PER_DEGREE_LON_EQUATOR: Double

    Permalink
  14. def apply(latDeg: Double, lonDeg: Double): Point

    Permalink
  15. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def degreesLatToMeters(latDegrees: Double): Double

    Permalink
  18. def degreesLonToMetersAtLat(lonDegrees: Double, lat: Double): Double

    Permalink
  19. def distanceInMeters(p1: Point, p2: Point): Double

    Permalink

    Calculate the distance between two points.

    Calculate the distance between two points. This algorithm does not take the curvature of the Earth into account, so it only works for small distance up to, say 200 km, and not too close to the poles.

    p1

    Point 1.

    p2

    Point 2.

    returns

    Straight distance between p1 and p2. Only accurate for small distances up to 200 km.

  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def fromDeg(latDeg: Double, lonDeg: Double): Point

    Permalink

    Create a point from lat/lon in degrees.

    Create a point from lat/lon in degrees.

    latDeg

    Longitude in degrees.

    lonDeg

    Latitude in degrees.

    returns

    A defined point.

  24. implicit def fromJava(point: mapcode.Point): Point

    Permalink
  25. def fromUniformlyDistributedRandomPoints(randomGenerator: Random): Point

    Permalink

    Create a random point, uniformly distributed over the surface of the Earth.

    Create a random point, uniformly distributed over the surface of the Earth.

    randomGenerator

    Random generator used to create a point.

    returns

    Random point with uniform distribution over the sphere.

  26. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  27. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  29. def metersToDegreesLonAtLat(eastMeters: Double, lat: Double): Double

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

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

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. implicit def toJava(point: Point): mapcode.Point

    Permalink
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. def unapply(point: Point): Option[(Double, Double)]

    Permalink
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped