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:
parent
076896d33b
commit
2d134d9380
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue