1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

Rectangle::toNearestInt(): improved documentation.

This commit is contained in:
Timur Doumler 2016-02-03 09:59:51 +00:00
parent 076896d33b
commit 2d134d9380

View file

@ -787,8 +787,8 @@ public:
}
/** Casts this rectangle to a Rectangle<int>.
This uses roundToInt for rounding the bounds (if this rectangle uses floating point)
or just returns a copy (if this rectangle uses integers as well).
This uses roundToInt to snap x, y, width and height to the nearest integer (losing precision).
If the rectangle already uses integers, this will simply return a copy.
@see getSmallestIntegerContainer()
*/
Rectangle<int> toNearestInt() const noexcept