We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ce482 commit 212966aCopy full SHA for 212966a
blib/math/Rectangle.h
@@ -59,6 +59,7 @@ namespace blib
59
void moveBy(const glm::vec2 &offset);
60
inline void setWidth(float width) { bottomright.x = topleft.x + width; };
61
inline void setHeight(float height) { bottomright.y = topleft.y + height; };
62
+ inline void setSize(const glm::vec2 &size) { bottomright = topleft + size; };
63
};
64
}
65
0 commit comments