29package com.jogamp.nativewindow.util;
33import com.jogamp.common.type.WriteCloneable;
Immutable Rectangle interface, with its position on the top-left.
Rectangle union(final int rx1, final int ry1, final int rx2, final int ry2)
Returns a new Rectangle instance containing the union of this rectangle and the given coordinates.
Rectangle intersection(final int rx1, final int ry1, final int rx2, final int ry2)
Returns a new Rectangle instance containing the intersection of this rectangle and the given coordina...
Rectangle union(final List< RectangleImmutable > rectangles)
Calculates the union of the given rectangles, stores it in this instance and returns this instance.
Rectangle intersection(RectangleImmutable r)
Returns a new Rectangle instance containing the intersection of this rectangle and the given rectangl...
int getX()
x-position, left of rectangle.
boolean equals(Object obj)
Checks whether two rect objects are equal.
int getY()
y-position, top of rectangle.
float coverage(RectangleImmutable r)
Returns the coverage of given rectangle w/ this this one, i.e.
int compareTo(final RectangleImmutable d)
boolean contains(RectangleImmutable r)
Rectangle union(final RectangleImmutable r)
Returns a new Rectangle instance containing the union of this rectangle and the given rectangle.