|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This Interface extends gishur.core.geom.Intersectable
for the planar X-objects.
Field Summary | |
static int |
FACES
Intersection mode, that allows only faces as return type for intersections |
static int |
POINT_INSIDE
Point lies inside of the object. |
static int |
POINT_ON_BORDER
Point lies on the border of the object. |
static int |
POINT_OUTSIDE
Point lies outside of the object. |
static int |
POINTS
Intersection mode, that allows only points as return type for intersections |
static int |
POINTS_CURVES
Intersection mode, that allows only lines and points as return type for intersections |
Fields inherited from interface gishur.core.geom.Intersectable |
DEFAULT |
Method Summary | |
boolean |
contains(double x,
double y)
Returns true, if the planar object contains the point (x,y), i.e. the intersection with that point is not empty. |
boolean |
contains(XPoint p)
Returns true, if the planar object contains the point p, i.e. the intersection with that point is not empty. |
boolean |
liesOn(XPoint p)
Returns true if the specified point p lies on the border of
this object. |
int |
locate(XPoint p)
Locates the specified point. |
Methods inherited from interface gishur.core.geom.Intersectable |
intersection, supportIntersection |
Field Detail |
public static final int POINTS
public static final int POINTS_CURVES
public static final int FACES
public static final int POINT_INSIDE
public static final int POINT_OUTSIDE
public static final int POINT_ON_BORDER
Method Detail |
public int locate(XPoint p)
POINT_INSIDE
,POINT_OUTSIDE
,POINT_ON_BORDER
}).p
- point to locateGeomException
- p
is null
public boolean contains(double x, double y)
x,y
- X/Ý-coordinates of the pointpublic boolean contains(XPoint p)
p
- the pointGeomException
- p
is null
public boolean liesOn(XPoint p)
p
lies on the border of
this
object.p
- test pointp
lies on the border of this object.GeomException
- p
is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |