Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package nvidia
    Definition Classes
    com
  • package mdx

    this is the base transform for mdx analytics SDK, the transform comprise of

    this is the base transform for mdx analytics SDK, the transform comprise of


    core : mdx streaming core classes
    xapp : comprise of sample applications

    Definition Classes
    nvidia
  • package core

    this is the core transform for mdx SDK, contains transform and classes for the core mdx functionality

    this is the core transform for mdx SDK, contains transform and classes for the core mdx functionality

    Definition Classes
    mdx
  • package util
    Definition Classes
    core
  • package kafka
    Definition Classes
    util
  • package kml

    primarily comprise of KMLWriter classes, these utility classed are used to validate calibration, malformed trajectories etc.

    primarily comprise of KMLWriter classes, these utility classed are used to validate calibration, malformed trajectories etc.

    Definition Classes
    util
  • package osm
    Definition Classes
    util
  • package playback

    primarily comprise of playback classes, these utility classed are used to simulate perception layer, send Frames or Messages from input file.

    primarily comprise of playback classes, these utility classed are used to simulate perception layer, send Frames or Messages from input file.

    Definition Classes
    util
  • CRP
  • Config
  • DistanceUtil
  • Encryptor
  • Implicits
  • MapMatchingUtil
  • SchemaUtil
  • Util
o

com.nvidia.mdx.core.util

DistanceUtil

object DistanceUtil

Util for distance related computation

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DistanceUtil
  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. val DEGREES_TO_RADIANS: Double
  5. val RADIANS_TO_DEGREES: Double
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def bearing(from: Location, to: Location): Double
  8. def bearing(from: jLocation, to: jLocation): Double

    Formula: θ = atan2( sin Δλ ⋅ cos φ2 , cos φ1 ⋅ sin φ2 − sin φ1 ⋅ cos φ2 ⋅ cos Δλ ) where φ1,λ1 is the start point, φ2,λ2 the end point (Δλ is the difference in longitude) JavaScript: (all angles in radians) var y = Math.sin(λ2-λ1) * Math.cos(φ2); var x = Math.cos(φ1)*Math.sin(φ2) - Math.sin(φ1)*Math.cos(φ2)*Math.cos(λ2-λ1); var brng = Math.atan2(y, x).toDegrees();

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  10. val ctx: SpatialContext

    default SpatialContext implementation for geospatial.

  11. val degreesToMeters: Double
  12. def direction(bearing: Double): String

    convert bearing to direction to East, West, North or South

  13. def direction_(bearing: Double): String

    convert bearing to 16 different direction

  14. def distance(p1: Location, p2: Location): Double

    distance in meters

  15. def distance(p1: jLocation, p2: jLocation): Double

    distance in meters

  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def getGlobalCoordinateFromLatLon(origin: Location, pt: Location): Coordinate
  20. def getGlobalCoordinateFromLatLon(origin: jLocation, pt: jLocation): jCoordinate

    def get_flat_earth_coord(origin, the_pt): """ Get the flat earth coordinates (x,y) from a given (lng,lat) point "pt".

    def get_flat_earth_coord(origin, the_pt): """ Get the flat earth coordinates (x,y) from a given (lng,lat) point "pt". The (x,y) is the offset in lng and lat dimensions (in meters or km) from a given origin point (olng, olat)

    Arguments: origin {list} -- (lng,lat) of the origin point pt {list} -- (lng,lat) of the point

    Returns: [type] -- [description] """ vardx = ((origin[0] - the_pt[0]) * 40000.0 * math.cos((origin[1] + the_pt[1]) * math.pi / 360) / 360) vardy = (origin[1] - the_pt[1]) * 40000.0 / 360 return vardx, vardy

  21. def getLatLon(origin: Location, coor: Coordinate): Location
  22. def getLatLon(origin: jLocation, coor: jCoordinate): jLocation

    Get the (lng, lat) from a given eucledian point (x,y).

    Get the (lng, lat) from a given eucledian point (x,y). The origin point is given by origin_lnglat in (longitude, latitude) format. We assume (x,y) is "x" kilometers along longitude from the origin_lnglat, and "y" meters along the latitude. NOTE: (x,y) is in km from origin (and NOT in meters)

    Arguments: origin_lnglat {list} -- The (longitude,latitude) of the origin point xy_pt {tuple} -- The (x,y) point (see above for details)

    Returns: list -- The (longitude, latitude) of the (x,y) point

  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def latLonWithinRange(location: Location): Boolean

    lat >= -90.00 && lat <= 90.0 && lon >= -180.00 && lon <= 180.0

  26. def latLonWithinRange(location: jLocation): Boolean

    lat >= -90.00 && lat <= 90.0 && lon >= -180.00 && lon <= 180.0

  27. lazy val log: Logger

    init logger

    init logger

    Annotations
    @transient()
  28. val metersToDegrees: Double
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. def pointOnBearing(from: jLocation, distMeters: Double, bearingDEG: Double): jLocation

    Calculates where a destination point is given an origin (from) distance, and bearing (given in degrees -- 0-360).

  33. def pointOnBearing(from: Point, distDEG: Double, bearingDEG: Double): Point

    Calculates where a destination point is given an origin (from) distance, and bearing (given in degrees -- 0-360).

  34. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  35. val sys: String

    System.getProperty("os.name")

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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped