I'm guessing by a rectangular object you mean cuboidal object since rectangular objects are 2-dimensional.
The shape is actually unimportant though, they are all measured using the same units. Cubic metres is what you're looking for. Hope this helps!
Chat with our AI personalities