object CoordinateConverters
Enclosing objects for com.github.dmarcous.s2utils.converters.CoordinateConverters methods for converting coordinate objects.
- Alphabetic
- By Inheritance
- CoordinateConverters
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
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)
-
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)
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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)
-
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)
-
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))
-
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))
-
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))
-
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))
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
-
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
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
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
-
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
-
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()
-
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
-
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
-
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
-
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)
-
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)
-
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)
-
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)
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
- @native() @throws( ... )