jdsl.geomobj.ref
Class AbstractRealLinearCurve2D
java.lang.Object
|
+--jdsl.geomobj.ref.AbstractGeomObject2D
|
+--jdsl.geomobj.ref.AbstractLinearCurve2D
|
+--jdsl.geomobj.ref.AbstractRealLinearCurve2D
- All Implemented Interfaces:
- Curve2D, GeomObject, GeomObject2D, LinearCurve2D, OpenCurve2D
- Direct Known Subclasses:
- RealLine2D, RealRay2D, RealSegment2D
- public abstract class AbstractRealLinearCurve2D
- extends AbstractLinearCurve2D
- implements LinearCurve2D
An abstract class extended by RealLine2D, RealRay2D, and
RealSegment2D.
- Version:
- $Id: AbstractRealLinearCurve2D.java,v 1.2 2001/09/10 20:42:21 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 RealPoint2D p1_
p2_
protected RealPoint2D p2_
dir_
protected RealDirection2D 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