|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.geom2d.polygon.HalfPlane2D
public class HalfPlane2D
a Half-plane, delimited by a straight line.
| Field Summary | |
|---|---|
protected StraightLine2D |
line
|
| Fields inherited from interface math.geom2d.Shape2D |
|---|
ACCURACY, defaultClipWindow, EMPTY_SET |
| Constructor Summary | |
|---|---|
HalfPlane2D(StraightObject2D line)
Main constructor |
|
| Method Summary | |
|---|---|
Shape2D |
clip(Box2D box)
Clip the shape with the given box, and returns a new shape. |
boolean |
contains(double x,
double y)
Tests if the point lies inside the halfplane. |
boolean |
contains(double x,
double y,
double w,
double h)
Tests if the given rectangle lies completely inside the halfplane. |
boolean |
contains(java.awt.geom.Point2D p)
Tests if the point lies inside the halfplane. |
boolean |
contains(java.awt.geom.Rectangle2D r)
Tests if the given rectangle lies completely inside the halfplane. |
Boundary2D |
getBoundary()
Returns the straight line that defines the limit of this half-plane. |
Box2D |
getBoundingBox()
Return the bounding box of the half-plane. |
java.awt.Rectangle |
getBounds()
Return bounding box of the shape. |
java.awt.geom.Rectangle2D |
getBounds2D()
Return more precise bounds for the shape. |
double |
getDistance(double x,
double y)
Gets the distance of the point to the half-plane. |
double |
getDistance(java.awt.geom.Point2D p)
Gets the distance of the point to the half-plane. |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform t)
Returns PathIterator of halfplane clipped by the default clipping window. |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform t,
double flatness)
Returns PathIterator of halfplane clipped by the default clipping window. |
double |
getSignedDistance(java.awt.geom.Point2D p)
Gets the signed distance of the point to this half-plane. |
boolean |
intersects(double x,
double y,
double w,
double h)
Tests if the half-plane intersects the given rectangle. |
boolean |
intersects(java.awt.geom.Rectangle2D r)
Tests if the half-plane intersects the given rectangle. |
boolean |
isBounded()
Always returns false, because a half-plane is not bounded. |
HalfPlane2D |
transform(AffineTransform2D trans)
Return the new HalfPlane created by an affine transform of this halfplane. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected StraightLine2D line
| Constructor Detail |
|---|
public HalfPlane2D(StraightObject2D line)
| Method Detail |
|---|
public Boundary2D getBoundary()
getBoundary in interface Domain2Dpublic boolean isBounded()
isBounded in interface Shape2Dpublic double getDistance(java.awt.geom.Point2D p)
getDistance in interface Shape2D
public double getDistance(double x,
double y)
getDistance in interface Shape2Dpublic double getSignedDistance(java.awt.geom.Point2D p)
public Shape2D clip(Box2D box)
Shape2D
clip in interface Shape2Dbox - the clipping box
public HalfPlane2D transform(AffineTransform2D trans)
transform in interface Shape2Dtrans - an affine transform
public Box2D getBoundingBox()
getBoundingBox in interface Shape2D
public boolean contains(double x,
double y)
contains in interface java.awt.Shapepublic boolean contains(java.awt.geom.Point2D p)
contains in interface java.awt.Shape
public boolean contains(double x,
double y,
double w,
double h)
contains in interface java.awt.Shapepublic boolean contains(java.awt.geom.Rectangle2D r)
contains in interface java.awt.Shapepublic java.awt.Rectangle getBounds()
getBounds in interface java.awt.Shapepublic java.awt.geom.Rectangle2D getBounds2D()
getBounds2D in interface java.awt.Shape
public boolean intersects(double x,
double y,
double w,
double h)
intersects in interface java.awt.Shapepublic boolean intersects(java.awt.geom.Rectangle2D r)
intersects in interface java.awt.Shapepublic java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform t)
getPathIterator in interface java.awt.Shape
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform t,
double flatness)
getPathIterator in interface java.awt.Shape
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||