Class dnx.geom.Rectangle2
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.geom.Rectangle2
java.lang.Object
|
+----dnx.geom.Rectangle2
- public class Rectangle2
- extends Object
- implements Cloneable, Copyable
Rectangle in 2 dimensions.
-
height
-
-
width
-
-
x
-
-
y
-
-
Rectangle2()
-
-
Rectangle2(float, float)
-
-
Rectangle2(float, float, float, float)
-
-
Rectangle2(Point2, Dimension2)
-
-
Rectangle2(Rectangle2)
-
-
clear()
-
-
clone()
-
-
copy(Copyable)
-
-
draw(Graphics2)
-
-
inside(float, float)
- Return whether a point is inside the rectangle.
-
inside(Point2)
-
-
reshape(float, float, float, float)
-
height
public float height
width
public float width
x
public float x
y
public float y
Rectangle2
public Rectangle2()
Rectangle2
public Rectangle2(float x,
float y,
float width,
float height)
Rectangle2
public Rectangle2(float width,
float height)
Rectangle2
public Rectangle2(Point2 p,
Dimension2 d)
Rectangle2
public Rectangle2(Rectangle2 r)
clear
public void clear()
reshape
public void reshape(float x,
float y,
float width,
float height)
inside
public boolean inside(float x,
float y)
- Return whether a point is inside the rectangle.
Note that this definition is *NOT* exactly compatible with
the AWT, which only includes points on the top and left
boundaries (but not the bottom and right ones) in the rectangle.
This asymmetry makes some things easier (esp. with int coordinates)
but really messes things up mathematically.
inside
public boolean inside(Point2 p)
draw
public void draw(Graphics2 g)
copy
public void copy(Copyable cop)
clone
public Object clone()
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index