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)

Inner classes inherited from class jdsl.geomobj.api.GeomObject2D
GeomObject2D.NoneGeomObject2D
 
Field Summary
protected  RealDirection2D dir_
           
protected  RealPoint2D p1_
           
protected  RealPoint2D 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 RealPoint2D p1_

p2_

protected RealPoint2D p2_

dir_

protected RealDirection2D 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