boundsInto method

  1. @override
void boundsInto(
  1. Aabb3 out
)
override

Its bounds in its entity's own space into out.

Implementation

@override
void boundsInto(Aabb3 out) {
  final (cx, cy) = _centre;
  final hz = Primitive3D.size(depth) / 2;
  out.setEmpty();
  for (var i = 0; i <= _steps; i++) {
    final a = _at(i);
    for (final r in [_inner, _outer]) {
      out.addXYZ(r * math.cos(a) - cx, -r * math.sin(a) - cy, -hz);
    }
  }
  out.max.z = hz;
}