• Computes the axis-aligned bounding box (AABB) enclosing a set of 3D points.

    Parameters

    • points: number[][]

      An array of 3D points [[x0, y0, z0], [x1, y1, z1], ...].

    • aabb: AABB3 = ...

      The output AABB [minX, minY, minZ, maxX, maxY, maxZ]. Defaults to a new AABB.

    Returns AABB3

    The computed AABB.