BoundType

View source

Provides the numeric discriminator used by 2D bounds APIs to distinguish box-shaped and circle-shaped geometry.

Use BoundType.Box2D or BoundType.Circle when application code branches on the representation of a BoundingBox2D or BoundingCircle value.

Examples

import { BoundingCircle, BoundType } from '@wimaengine/geometry'

const bound = new BoundingCircle()
const isCircle = bound.type === BoundType.Circle

Variants