Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Apply a zoom scale.

      For perspective cameras: the camera position is derived from distance × orientation elsewhere, so we just return the new distance value (caller assigns it).

      For orthographic cameras: zoom is mutated in place (clamped against the supplied limits) and the projection matrix is refreshed. The returned distance is unchanged.

      Parameters

      • camera: LuxarCamera
      • currentDistance: number
      • scale: number
      • minZoom: number
      • maxZoom: number

      Returns number