Function extractTiltAngleFromLocation

  • Gets the tilt angle (in radians) of the object relative to the coordinates of location.

    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 tilt angle (in radians) of object in the tangent space of location.

    Parameters

    • projection: Projection

      The @xyzmaps/harp-geoutils#Projection used when converting from geo to world coordinates.

    • object: Object3D

      The object to get the coordinates from.

    • location: Vector3Like | GeoCoordinates

      The reference point.

    • Optional tiltAxis: Vector3

      Optional axis used to define the rotation about which the object's tilt occurs, the direction vector to the location from the camera is projected on the plane with the given angle.

    Returns number

Generated using TypeDoc