Function extractSphericalCoordinatesFromLocation

  • Gets the spherical coordinates in radian of the object to the coordinates of point.

    Note: this method can be used to get the direction that an object points to, when location is the target of that object, by adding PI to it. Otherwise it only returns the spherical coordinates of object in the tangent space of location.

    Parameters

    • mapView: {
          projection: Projection;
      }

      The MapView instance to consider.

      • projection: Projection
    • object: Object3D

      The object to get the coordinates from.

    • location: Vector3Like | GeoCoordinatesLike

      The reference point.

    Returns {
        azimuth: number;
        tilt: number;
    }

    • azimuth: number
    • tilt: number

Generated using TypeDoc