Yes! But I would go for juce::Size
instead of juce::Dimensions
. It is shorter and more consistent with existing methods, such as juce::Rectangle::setSize()
.
The addition of such a class is briefly discussed here, by the way:
Yes! But I would go for juce::Size
instead of juce::Dimensions
. It is shorter and more consistent with existing methods, such as juce::Rectangle::setSize()
.
The addition of such a class is briefly discussed here, by the way: