29package com.jogamp.math;
47 return new Recti(
this);
50 public Recti(
final int[] xywh) {
54 public Recti(
final int x,
final int y,
final int width,
final int height) {
55 set(x, y, width, height);
59 public void set(
final Recti o) {
63 this.height= o.height;
67 public void set(
final int x,
final int y,
final int width,
final int height) {
75 public Recti set(
final int[] xywh) {
84 public int[]
get(
final int[] xywh) {
88 xywh[3] = this.height;
92 public int x() {
return x; }
93 public int y() {
return y; }
97 public void setX(
final int x) { this.x = x; }
98 public void setY(
final int y) { this.y = y; }
99 public void setWidth(
final int width) { this.width = width; }
100 public void setHeight(
final int height) { this.height = height; }
104 return 0 == width || 0 == height;
116 return x == o.x && y == o.y &&
117 width == o.width && height == o.height;
123 if( o instanceof
Recti ) {
132 return x +
" / " + y +
" " + width +
" x " + height;
Rectangle with x, y, width and height integer components.
void setWidth(final int width)
void setHeight(final int height)
boolean isZero()
Return true if area is zero.
boolean equals(final Object o)
boolean isEqual(final Recti o)
Equals check.
Recti(final int x, final int y, final int width, final int height)