Luxar Viewer API Documentation - v2026.10.19
    Preparing search index...
    • The fraction κ of the screen shift to keep: the stricter of the two axis factors, so the shaped shift points the same way as the unshaped one.

      Parameters

      • b: readonly number[]

        Unshifted NDC position [x, y] (inside [-1, 1] for a visible fragment).

      • s: readonly number[]

        Unshaped NDC shift [x, y].

      Returns number