public class Rectangle
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
float |
height |
float |
width |
float |
x |
float |
y |
| Constructor and Description |
|---|
Rectangle() |
Rectangle(float x,
float y,
float width,
float height) |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
clone() |
boolean |
equals(java.lang.Object obj) |
float |
getHeight() |
float |
getWidth() |
float |
getX() |
float |
getX2() |
float |
getY() |
float |
getY2() |
int |
hashCode() |
boolean |
intersection(Rectangle area)
|
boolean |
intersectWith(Rectangle area) |
boolean |
isIncludedIn(Rectangle area) |
Rectangle |
set(float x,
float y,
float width,
float height) |
Rectangle |
set(Rectangle viewport) |
void |
setLocation(float x,
float y) |
Rectangle |
setPoints(float x1,
float x2,
float y1,
float y2) |
void |
setSize(float width,
float height) |
java.lang.String |
toString() |
public Rectangle()
public Rectangle(float x,
float y,
float width,
float height)
public final Rectangle set(float x, float y, float width, float height)
x - start position on x axisy - start position on y axiswidth - width on x axisheight - height on y axispublic final Rectangle setPoints(float x1, float x2, float y1, float y2)
x1 - start position on x axisx2 - end position on x axisy1 - start position on y axisy2 - end position on y axispublic Rectangle clone()
clone in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Objectpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final float getX()
public final float getX2()
public final float getY()
public final float getY2()
public final float getWidth()
public final float getHeight()
public final void setLocation(float x,
float y)
public final void setSize(float width,
float height)
public final boolean intersection(Rectangle area)
area - area to test intersection withRectangle intersect with the specified areapublic final boolean intersectWith(Rectangle area)
area - area to test intersection withRectangle intersect with the specified areaBonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com