jApp
Class Rectangle2d
java.lang.Object
jApp.Rectangle2d
- All Implemented Interfaces:
- java.io.Serializable
public class Rectangle2d
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Field Summary |
double |
x1
|
double |
x2
|
double |
y1
|
double |
y2
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x1
public double x1
y1
public double y1
x2
public double x2
y2
public double y2
Rectangle2d
public Rectangle2d(Rectangle2d r)
Rectangle2d
public Rectangle2d()
Rectangle2d
public Rectangle2d(java.awt.geom.Rectangle2D r)
Rectangle2d
public Rectangle2d(double x1,
double y1,
double x2,
double y2)
Rectangle2d
public Rectangle2d(Point2d p1,
Point2d p2)
asRectangle2D
public java.awt.geom.Rectangle2D.Double asRectangle2D()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
empty
public boolean empty()
getX
public double getX()
getY
public double getY()
getWidth
public double getWidth()
getHeight
public double getHeight()
union
public Rectangle2d union(double x,
double y)
union
public Rectangle2d union(Point2d p)
union
public Rectangle2d union(Rectangle2d r)