Box2D
View sourceIdentifies box-shaped BoundingBox2D geometry (0).
Enum
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.
import { BoundingCircle, BoundType } from '@wimaengine/geometry'
const bound = new BoundingCircle()
const isCircle = bound.type === BoundType.CircleIdentifies box-shaped BoundingBox2D geometry (0).
Identifies circle-shaped BoundingCircle geometry (1).