topLeftRect function
Returns a new Rectangle at the top-left of area with width and height.
Implementation
Rectangle topLeftRect(Rectangle area, int width, int height) {
return rect(area.minX, area.minY, width, height).intersect(area);
}
Returns a new Rectangle at the top-left of area with width and height.
Rectangle topLeftRect(Rectangle area, int width, int height) {
return rect(area.minX, area.minY, width, height).intersect(area);
}