diff --git a/SimoxUtility/shapes/OrientedBoxBase.h b/SimoxUtility/shapes/OrientedBoxBase.h index ee5f74501018791acaab5163a174eece96e3fe35..be1638112e39baf75d237dee5bc71541faab8ea7 100644 --- a/SimoxUtility/shapes/OrientedBoxBase.h +++ b/SimoxUtility/shapes/OrientedBoxBase.h @@ -234,6 +234,9 @@ namespace simox return _d(0) * _d(1) * _d(2); } + void scale(const vector_t& factors) { + _d = _d.cwiseProduct(factors); + } void scale(float_t factor) { _d *= factor;