A rectangle with specified origin and size.
Java code snippet:
Rectangle rect1 = new Rectangle(10, 20, 100, 150);
System.out.println("Created rectangle: x=" + rect1.getX() + ", y=" + rect1.getY() +
", width=" + rect1.getWidth() + ", height=" + rect1.getHeight());
Kotlin code snippet:
// Create rectangle with x, y, width, height
val rect1 = Rectangle(10, 20, 100, 150)
println("Created rectangle: x=${rect1.x}, y=${rect1.y}, width=${rect1.width}, height=${rect1.height}")
Definition at line 23 of file Rectangle.java.