Package com.jogamp.opengl.math
Class Recti
- java.lang.Object
-
- com.jogamp.opengl.math.Recti
-
public final class Recti extends Object
Rectangle with x, y, width and height integer components.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Recticopy()booleanequals(Object o)int[]get(int[] xywh)xywh = this, returns xy.intheight()booleanisEqual(Recti o)Equals check.booleanisZero()Return true if all components are zero.Rectiset(int[] xywh)this = xywh, returns this.voidset(int x, int y, int width, int height)this = { x, y, width, height }, returns this.voidset(Recti o)this = o, returns this.voidsetHeight(int height)voidsetWidth(int width)voidsetX(int x)voidsetY(int y)StringtoString()intwidth()intx()inty()
-
-
-
Constructor Detail
-
Recti
public Recti()
-
Recti
public Recti(Recti o)
-
Recti
public Recti(int[] xywh)
-
Recti
public Recti(int x, int y, int width, int height)
-
-
Method Detail
-
copy
public Recti copy()
-
set
public void set(Recti o)
this = o, returns this.
-
set
public void set(int x, int y, int width, int height)this = { x, y, width, height }, returns this.
-
set
public Recti set(int[] xywh)
this = xywh, returns this.
-
get
public int[] get(int[] xywh)
xywh = this, returns xy.
-
x
public int x()
-
y
public int y()
-
width
public int width()
-
height
public int height()
-
setX
public void setX(int x)
-
setY
public void setY(int y)
-
setWidth
public void setWidth(int width)
-
setHeight
public void setHeight(int height)
-
isZero
public boolean isZero()
Return true if all components are zero.
-
isEqual
public boolean isEqual(Recti o)
Equals check.- Parameters:
o- comparison value- Returns:
- true if all components are equal
-
-