Contents

init(center:halfExtents:)

Creates a bounding box with the given center and half-extents, with a circumscribed sphere.

Declaration

init(center: SIMD3<Float>, halfExtents: SIMD3<Float>)

Parameters

  • center:

    The center of the bounding box in model space.

  • halfExtents:

    The half-extents of the bounding box along each axis.

See Also

Creating a bounding volume