AABox Volume3DOverlay::getBounds() const { auto extents = Extents{_localBoundingBox}; extents.rotate(getWorldOrientation()); extents.shiftBy(getWorldPosition()); return AABox(extents); }
CPW_Function:: CPW_Function(const CPW_Function &fn, const Unit deltaUnit) : Object(fn), foot(fn.foot), coords(fn.coords) { assert(this->is_same_that(fn)); shiftBy(deltaUnit); }
void Extents::transform(const Transform& transform) { scale(transform.getScale()); rotate(transform.getRotation()); shiftBy(transform.getTranslation()); }