Skip to content

Update Rectangle.java - Add default and width-height constructors to …#281

Open
inonwir wants to merge 1 commit intothreerings:masterfrom
inonwir:patch-1
Open

Update Rectangle.java - Add default and width-height constructors to …#281
inonwir wants to merge 1 commit intothreerings:masterfrom
inonwir:patch-1

Conversation

@inonwir
Copy link

@inonwir inonwir commented Jul 6, 2025

…Rectangle

Add default and width-height constructors to Rectangle This PR adds two convenience constructors:

  • A zero-argument constructor for a (0,0,0,0) rectangle.
  • A width-height constructor to create a rectangle at origin.

This improves usability for callers who want simple rectangle defaults without manually specifying x and y.

…Rectangle

Add default and width-height constructors to Rectangle
This PR adds two convenience constructors:
- A zero-argument constructor for a (0,0,0,0) rectangle.
- A width-height constructor to create a rectangle at origin.

This improves usability for callers who want simple rectangle defaults without manually specifying x and y.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant