jdsl.geomobj.ref
Class AbstractRatLinearCurve2D
java.lang.Object
|
+--jdsl.geomobj.ref.AbstractGeomObject2D
|
+--jdsl.geomobj.ref.AbstractLinearCurve2D
|
+--jdsl.geomobj.ref.AbstractRatLinearCurve2D
- All Implemented Interfaces:
- Curve2D, GeomObject, GeomObject2D, LinearCurve2D, OpenCurve2D
- Direct Known Subclasses:
- RatLine2D, RatRay2D, RatSegment2D
- public abstract class AbstractRatLinearCurve2D
- extends AbstractLinearCurve2D
- implements LinearCurve2D
An abstract class extended by RatLine2D, RatRay2D, and
RatSegment2D.
- Version:
- $Id: AbstractRatLinearCurve2D.java,v 1.6 2001/05/02 13:32:59 lv Exp $
- Author:
- Luca Vismara (lv)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
p1_
protected RatPoint2D p1_
p2_
protected RatPoint2D p2_
dir_
protected RatDirection2D dir_
arithmeticType
public int arithmeticType()
- Description copied from interface:
GeomObject
- The arithmetic type of a geometric object is encoded as an
integer number. Current legal values are:
0 = an integer geometric object
1 = a rational geometric object
- Specified by:
arithmeticType in interface GeomObject
- Following copied from interface:
jdsl.geomobj.api.GeomObject
- Returns:
- the arithmetic type of this
points
public Point2D[] points()
- Specified by:
points in interface OpenCurve2D
- Following copied from interface:
jdsl.geomobj.api.OpenCurve2D
- Returns:
- an array of points defining this
direction
public Direction2D direction()
- Specified by:
direction in interface LinearCurve2D
- Following copied from interface:
jdsl.geomobj.api.LinearCurve2D
- Returns:
- the direction associated with this