gishur.x2.core
Class XIntersectableObject

java.lang.Object
  |
  +--gishur.x2.core.XObject
        |
        +--gishur.x2.core.XIntersectableObject
All Implemented Interfaces:
java.lang.Cloneable, Cloneable, Intersectable, Intersectable, java.io.Serializable
Direct Known Subclasses:
XParametricCurve

public abstract class XIntersectableObject
extends XObject
implements Intersectable

Version:
1.0
Author:
Thomas Wolf
See Also:
Serialized Form

Fields inherited from class gishur.x2.core.XObject
RESERVED_STATE_MAX_MASK, STATE_DIRTY, STATE_LOCKED, STATE_MUTABLE
 
Fields inherited from interface gishur.x2.core.Intersectable
FACES, POINT_INSIDE, POINT_ON_BORDER, POINT_OUTSIDE, POINTS, POINTS_CURVES
 
Fields inherited from interface gishur.core.geom.Intersectable
DEFAULT
 
Constructor Summary
XIntersectableObject()
           
 
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.
 
Methods inherited from class gishur.x2.core.XObject
checkState, checkStateCleared, clearDirty, clearState, clone, copy, dirty, getMutable, getOldXObject, getXObjectMembers, inverseTransform, lock, locked, makeImmutable, makeMutable, modify, mutable, restoreMutability, rotate, scale, setState, state, state, toString_complete, toString_state, toString, transform, transform, translate, translate, unlock
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gishur.x2.core.Intersectable
locate
 
Methods inherited from interface gishur.core.geom.Intersectable
intersection, supportIntersection
 

Constructor Detail

XIntersectableObject

public XIntersectableObject()
Method Detail

contains

public 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.
Specified by:
contains in interface Intersectable
Parameters:
x,y - X/Ý-coordinates of the point
Returns:
true, if (x,y) is contained by the object

contains

public boolean contains(XPoint p)
Returns true, if the planar object contains the point p, i.e. the intersection with that point is not empty.
Specified by:
contains in interface Intersectable
Parameters:
p - the point
Returns:
true, if p is contained by the object
Throws:
GeomException - p is null

liesOn

public boolean liesOn(XPoint p)
Returns true if the specified point p lies on the border of this object.
Specified by:
liesOn in interface Intersectable
Parameters:
p - test point
Returns:
True, if p lies on the border of this object.
Throws:
GeomException - p is null