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)

Inner classes inherited from class jdsl.geomobj.api.GeomObject2D
GeomObject2D.NoneGeomObject2D
 
Field Summary
protected  RatDirection2D dir_
           
protected  RatPoint2D p1_
           
protected  RatPoint2D p2_
           
 
Fields inherited from class jdsl.geomobj.ref.AbstractLinearCurve2D
bottom_, INFINITE, left_, NEGATIVE, POSITIVE, right_, slope_, top_, ZERO
 
Fields inherited from class jdsl.geomobj.ref.AbstractGeomObject2D
gt, jn
 
Fields inherited from interface jdsl.geomobj.api.GeomObject2D
NONE
 
Method Summary
 int arithmeticType()
          The arithmetic type of a geometric object is encoded as an integer number.
 Direction2D direction()
           
 Point2D[] points()
           
 
Methods inherited from class jdsl.geomobj.ref.AbstractLinearCurve2D
isDecreasing, isHorizontal, isIncreasing, isVertical, toString
 
Methods inherited from class jdsl.geomobj.ref.AbstractGeomObject2D
dim
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jdsl.geomobj.api.LinearCurve2D
isDecreasing, isHorizontal, isIncreasing, isVertical
 
Methods inherited from interface jdsl.geomobj.api.GeomObject
dim
 

Field Detail

p1_

protected RatPoint2D p1_

p2_

protected RatPoint2D p2_

dir_

protected RatDirection2D dir_
Method Detail

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