Function getTargetAndDistance

  • Internal

    Computes the target for a given camera and the distance between them.

    Parameters

    • projection: Projection

      The world space projection.

    • camera: Camera

      The camera whose target will be computed.

    • Optional elevationProvider: ElevationProvider

      If provided, elevation at the camera position will be used.

    Returns {
        distance: number;
        final: boolean;
        target: THREE.Vector3;
    }

    The target, the distance to it and a boolean flag set to false in case an elevation provider was passed but the elevation was not available yet.

    • distance: number
    • final: boolean
    • target: THREE.Vector3

Generated using TypeDoc