rp1.rossum
Class RsRectangle
java.lang.Object
rp1.rossum.RsRectangle
- All Implemented Interfaces:
- java.io.Serializable
public class RsRectangle
- extends java.lang.Object
- implements java.io.Serializable
A class used to represent rectangular regions using floating-point
values, RsRectangle is used for analysis and graphics.
- See Also:
- Serialized Form
Method Summary |
void |
clip(double x0,
double y0,
double x1,
double y1)
|
boolean |
contains(double px,
double py)
|
boolean |
contains(RsPoint point)
|
void |
copy(RsRectangle r)
|
void |
insert(double px,
double py)
|
void |
insert(RsPoint point)
|
boolean |
intersects(RsRectangle r)
|
boolean |
isPopulated()
|
void |
move(double _x,
double _y)
|
void |
setBounds(double _x,
double _y,
double _width,
double _height)
|
void |
setSize(double _width,
double _height)
|
void |
transform(RsTransform t)
|
void |
translate(double _x,
double _y)
|
void |
translate(RsVector v)
|
void |
union(RsRectangle r)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
public double x
y
public double y
width
public double width
height
public double height
RsRectangle
public RsRectangle()
RsRectangle
public RsRectangle(RsRectangle r)
RsRectangle
public RsRectangle(double x,
double y,
double width,
double height)
RsRectangle
public RsRectangle(RsPoint[] point,
int nPoint)
insert
public void insert(RsPoint point)
insert
public void insert(double px,
double py)
setBounds
public void setBounds(double _x,
double _y,
double _width,
double _height)
setSize
public void setSize(double _width,
double _height)
move
public void move(double _x,
double _y)
translate
public void translate(double _x,
double _y)
translate
public void translate(RsVector v)
union
public void union(RsRectangle r)
copy
public void copy(RsRectangle r)
clip
public void clip(double x0,
double y0,
double x1,
double y1)
contains
public boolean contains(RsPoint point)
contains
public boolean contains(double px,
double py)
intersects
public boolean intersects(RsRectangle r)
transform
public void transform(RsTransform t)
isPopulated
public boolean isPopulated()