Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "internal/coll-bounds"

Index

Functions

Functions

Const collBounds

  • collBounds(shapes: IShape[], bounds: Fn<IShape, AABBLike | undefined>): undefined | Vec[]
  • Computes the total bounds for the given shape collection, which should either contain only 2D or 3D types. No mixed dimensions are allowed! Currently the {@link bounds} function MUST be passed in as arg to avoid circular module dependencies.

    Parameters

    • shapes: IShape[]

      input shapes

    • bounds: Fn<IShape, AABBLike | undefined>

      bbox function

    Returns undefined | Vec[]

Generated using TypeDoc