OBB constructor

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

Implementation

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