java.lang.Object | +--edu.gwu.geometry.IntersectionInfo
An instance of IntersectionInfo is used to
 describe an intersection point, if any.
| Field Summary | |
| static int | ENDPOINT_INTERSECTIONThis constant implies two coincident endpoints (not a proper intersection). | 
| static int | NO_INTERSECTIONThis constant implies no intersection was found. | 
| static int | PROPER_INTERSECTIONThis constant implies a proper intersection was found. | 
| Constructor Summary | |
| IntersectionInfo(Pointd p,
                 Pointd q,
                 int i) | |
| Method Summary | |
|  int | getCode()Call getCodeto obtain the intersection code. | 
|  Pointd | getIntersectionPoint()Call getIntersectionPointto retrieve the intersection point. | 
|  Pointd | getProperIntersectionPoint()Calling getProperIntersectionPointwill result
 returning an intersection point if the intersection was proper,nullotherwise. | 
|  boolean | isProperIntersection()Call isProperIntersectionto determine whether a proper intersection
 occurred. | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final int NO_INTERSECTION
public static final int PROPER_INTERSECTION
public static final int ENDPOINT_INTERSECTION
| Constructor Detail | 
public IntersectionInfo(Pointd p,
                        Pointd q,
                        int i)
| Method Detail | 
public Pointd getIntersectionPoint()
getIntersectionPoint to retrieve the intersection point.Pointd valuepublic boolean isProperIntersection()
isProperIntersection to determine whether a proper intersection
 occurred.boolean valuepublic Pointd getProperIntersectionPoint()
getProperIntersectionPoint will result
 returning an intersection point if the intersection was proper,
 null otherwise.Pointd valuepublic int getCode()
getCode to obtain the intersection code.int valuepublic java.lang.String toString()
toString in class java.lang.Object