Packages

o

com.github.dmarcous.s2utils.converters

CoordinateConverters

object CoordinateConverters

Enclosing objects for com.github.dmarcous.s2utils.converters.CoordinateConverters methods for converting coordinate objects.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CoordinateConverters
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def adjusted3dCartesianCoordinatesTo2dRadianCoordinates(cartesianCoordinates: (Double, Double, Double)): (Double, Double)

    Convert adjusted 3d Cartesian coordinates to 2d radian coordinates

    Convert adjusted 3d Cartesian coordinates to 2d radian coordinates

    cartesianCoordinates

    (x (first component - longitude), y (second component - latitude), z (generated))

    returns

    adjusted 2d radian coordinates tuple (lon, lat)

  5. def adjusted3dCartesianCoordinatesTo2dRadianCoordinates(x: Double, y: Double, z: Double): (Double, Double)

    Convert adjusted 3d Cartesian coordinates to 2d radian coordinates

    Convert adjusted 3d Cartesian coordinates to 2d radian coordinates

    x

    first component - longitude

    y

    second component - latitude

    z

    generated)

    returns

    adjusted 2d radian coordinates tuple (lon, lat)

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def cartesianCoordinates2dTo3d(cartesianCoordinates: (Double, Double)): (Double, Double, Double)

    Converts 2d cartesian coordinates to 3d adjusted coordinates to be used with geo functions

    Converts 2d cartesian coordinates to 3d adjusted coordinates to be used with geo functions

    cartesianCoordinates

    (x (first component - longitude), y (second component - latitude))

    returns

    adjusted 3d coordinates tuple (x, y, z)

  8. def cartesianCoordinates2dTo3d(x: Double, y: Double): (Double, Double, Double)

    Converts 2d cartesian coordinates to 3d adjusted coordinates to be used with geo functions

    Converts 2d cartesian coordinates to 3d adjusted coordinates to be used with geo functions

    x

    first component - longitude

    y

    second component - latitude

    returns

    adjusted 3d coordinates tuple (x, y, z)

  9. def cartesianCoordinatesToPolarCoordinates(cartesianCoordinates: (Double, Double, Double)): (Double, Double, Double)

    Convert degree coordinates to polar coordinates

    Convert degree coordinates to polar coordinates

    cartesianCoordinates

    (x (first component), y (second component), z (third component))

    returns

    polar coordinates tuple (radius, inclination (theta), azimuth (phi))

  10. def cartesianCoordinatesToPolarCoordinates(x: Double, y: Double, z: Double): (Double, Double, Double)

    Convert degree coordinates to polar coordinates

    Convert degree coordinates to polar coordinates

    x

    first component

    y

    second component

    z

    third component

    returns

    polar coordinates tuple (radius, inclination (theta), azimuth (phi))

  11. def cartesianCoordinatesToRadianCoordinates(cartesianCoordinates: (Double, Double, Double)): (Double, Double, Double)

    Convert degree coordinates to radian coordinates

    Convert degree coordinates to radian coordinates

    cartesianCoordinates

    (x (first component), y (second component), z (third component))

    returns

    radian coordinates tuple (radius, inclination (theta), azimuth (phi))

  12. def cartesianCoordinatesToRadianCoordinates(x: Double, y: Double, z: Double): (Double, Double, Double)

    Convert degree coordinates to radian coordinates

    Convert degree coordinates to radian coordinates

    x

    first component

    y

    second component

    z

    third component

    returns

    radian coordinates tuple (radius, inclination (theta), azimuth (phi))

  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. def coordinateToS2Cell(coordinate: Coordinate, lvl: Int): S2Cell

    Converts a coordinate to S2Cell object

    Converts a coordinate to S2Cell object

    coordinate

    (x = lon, y=lat)

    lvl

    S2Cell level

    returns

    S2Cell object

  15. def coordinateToS2CellFullToken(coordinate: Coordinate, lvl: Int): String

    Converts a coordinate to S2Cell full token

    Converts a coordinate to S2Cell full token

    coordinate

    (x = lon, y=lat)

    lvl

    S2Cell level

    returns

    S2Cell full token

  16. def coordinateToS2CellID(coordinate: Coordinate, lvl: Int): S2CellId

    Converts a coordinate to S2CellId object

    Converts a coordinate to S2CellId object

    coordinate

    (x = lon, y=lat)

    lvl

    S2Cell level

    returns

    S2CellId object

  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def lonLatToS2Cell(lon: Double, lat: Double, lvl: Int): S2Cell

    Converts a longitude and latitude to S2Cell object

    Converts a longitude and latitude to S2Cell object

    lon

    longitude

    lat

    latitude

    lvl

    S2Cell level

    returns

    S2Cell object

  24. def lonLatToS2CellFullToken(lon: Double, lat: Double, lvl: Int): String

    Converts a longitude and latitude to S2Cell full token

    Converts a longitude and latitude to S2Cell full token

    lon

    longitude

    lat

    latitude

    lvl

    S2Cell level

    returns

    S2Cell full token

  25. def lonLatToS2CellID(lon: Double, lat: Double, lvl: Int): S2CellId

    Converts a longitude and latitude to S2CellId object

    Converts a longitude and latitude to S2CellId object

    lon

    longitude

    lat

    latitude

    lvl

    S2Cell level

    returns

    S2CellId object

  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def pointToS2Cell(point: Point, lvl: Int): S2Cell

    Converts a point to S2Cell object

    Converts a point to S2Cell object

    point

    (x = lon, y=lat)

    lvl

    S2Cell level

    returns

    S2Cell object

  30. def pointToS2CellFullToken(point: Point, lvl: Int): String

    Converts a point to S2Cell full token

    Converts a point to S2Cell full token

    point

    (x = lon, y=lat)

    lvl

    S2Cell level

    returns

    S2Cell full token

  31. def pointToS2CellID(point: Point, lvl: Int): S2CellId

    Converts a point to S2CellId object

    Converts a point to S2CellId object

    point

    (x = lon, y=lat)

    lvl

    S2Cell level

    returns

    S2CellId object

  32. def polarCoordinatesToCartesianCoordinates(polarCoordinates: (Double, Double, Double)): (Double, Double, Double)

    Convert polar coordinates to degree coordinates inclination = theta azimuth = phi

    Convert polar coordinates to degree coordinates inclination = theta azimuth = phi

    polarCoordinates

    (radius - radius length, inclination - inclination angle (theta), azimuth - azimuth angle (phi))

    returns

    Cartesian coordinates tuple (x, y, z)

  33. def polarCoordinatesToCartesianCoordinates(radius: Double, inclination: Double, azimuth: Double): (Double, Double, Double)

    Convert polar coordinates to degree coordinates inclination = theta azimuth = phi

    Convert polar coordinates to degree coordinates inclination = theta azimuth = phi

    radius

    radius length

    inclination

    inclination angle (theta)

    azimuth

    azimuth angle (phi)

    returns

    Cartesian coordinates tuple (x, y, z)

  34. def radianCoordinatesToCartesianCoordinates(radianCoordinates: (Double, Double, Double)): (Double, Double, Double)

    Convert radian coordinates to degree coordinates inclination = theta azimuth = phi

    Convert radian coordinates to degree coordinates inclination = theta azimuth = phi

    radianCoordinates

    (radius - radius length, inclination - inclination angle (theta), azimuth - azimuth angle (phi))

    returns

    Cartesian coordinates tuple (x, y, z)

  35. def radianCoordinatesToCartesianCoordinates(radius: Double, inclination: Double, azimuth: Double): (Double, Double, Double)

    Convert radian coordinates to degree coordinates inclination = theta azimuth = phi

    Convert radian coordinates to degree coordinates inclination = theta azimuth = phi

    radius

    radius length

    inclination

    inclination angle (theta)

    azimuth

    azimuth angle (phi)

    returns

    Cartesian coordinates tuple (x, y, z)

  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped