OBB constructor

OBB({
  1. dynamic center,
  2. dynamic halfSize,
  3. dynamic rotation,
})

Implementation

OBB({center, halfSize, rotation}) {
  this.center = center ?? Vector3.init();
  this.halfSize = halfSize ?? Vector3.init();
  this.rotation = rotation ?? Matrix3();
}