We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, some functionality can be added to the Rectangle class:
/** Restricts the rectangle within another larger rectangle. {x: -50, y: -50, w: 100, y: 100} restrictWithin {x: 0: y: 0, w: 500, h: 500} -> {x: 0, y: 0, w: 100, y: 100} */ restrictWithin(rect: Rectangle): Rectangle;
This also can be added to Circle and Ellipse classes. The method can be overloaded:
restrictWithin(rect: Rectangle): Rectangle; restrictWithin(rect: Circle): Rectangle; restrictWithin(rect: Ellipse): Rectangle;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, some functionality can be added to the Rectangle class:
This also can be added to Circle and Ellipse classes. The method can be overloaded:
The text was updated successfully, but these errors were encountered: