Class Rectangle.Mutable
java.lang.Object
codechicken.lib.gui.modular.lib.geometry.Rectangle.Mutable
- All Implemented Interfaces:
Rectangle
- Enclosing interface:
- Rectangle
-
Nested Class Summary
Nested classes/interfaces inherited from interface codechicken.lib.gui.modular.lib.geometry.Rectangle
Rectangle.Dynamic, Rectangle.Immutable, Rectangle.Mutable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a new rectangle, the bounds of which enclose all the input rectangles.doubleheight()Returns a new rectangle that represents the intersection area between the two inputsoffsetPos(double xAmount, double yAmount) Returns a new rectangle with this operation appliedoffsetSize(double xAmount, double yAmount) Returns a new rectangle with this operation appliedpos()voidsetPos(double newX, double newY) Returns a new rectangle with this operation appliedsetSize(double width, double height) Returns a new rectangle with this operation applieddoublewidth()
-
Constructor Details
-
Mutable
-
-
Method Details
-
pos
-
width
public double width() -
height
public double height() -
offsetPos
Description copied from interface:RectangleReturns a new rectangle with this operation applied -
setPos
Description copied from interface:RectangleReturns a new rectangle with this operation applied -
setSize
Description copied from interface:RectangleReturns a new rectangle with this operation applied -
offsetSize
Description copied from interface:RectangleReturns a new rectangle with this operation applied- Specified by:
offsetSizein interfaceRectangle
-
intersect
Description copied from interface:RectangleReturns a new rectangle that represents the intersection area between the two inputs -
set
-
combine
Description copied from interface:RectangleReturns a new rectangle, the bounds of which enclose all the input rectangles. -
immutable
-