Function createRTCViewMat

  • Creates a view matrix that transforms coordinates from RTC to View-space.

    This matrix allows the transformation of RTC coordinates (relative to a defined origin) into view-space coordinates.

    Parameters

    • viewMat: FloatArrayParam

      The View matrix to transform RTC coordinates into view-space.

    • rtcCenter: FloatArrayParam

      The RTC center coordinates, which define the origin of the RTC system.

    • OptionalrtcViewMat: FloatArrayParam = tempMat

      Optional parameter to store the resulting RTC view matrix. If not provided, a temporary matrix is used.

    Returns FloatArrayParam

    The transformed RTC view matrix.