• Decompresses an AABB (Axis-Aligned Bounding Box) using another AABB as reference for scaling and offset. This function applies the scaling and offset defined by the second AABB to the first AABB.

    Parameters

    • aabb: AABB3

      The AABB values to be decompressed (min and max values).

    • aabb2: AABB3

      The reference AABB used for decompression (min and max values).

    • dest: AABB3 = aabb

      The destination array where the decompressed AABB will be stored. Defaults to the input AABB.

    Returns AABB3

    • The decompressed AABB stored in dest.
    const aabb = [0, 0, 0, 10, 10, 10]; // Example AABB
    const aabb2 = [0, 0, 0, 20, 20, 20]; // Example reference AABB for scaling
    const decompressedAABB = decompressAABB3WithAABB3(aabb, aabb2);