jdsl.geomobj.ref
Class AbstractLinearCurve2D
java.lang.Object
|
+--jdsl.geomobj.ref.AbstractGeomObject2D
|
+--jdsl.geomobj.ref.AbstractLinearCurve2D
- All Implemented Interfaces:
- Curve2D, GeomObject, GeomObject2D, LinearCurve2D, OpenCurve2D
- Direct Known Subclasses:
- AbstractIntLinearCurve2D, AbstractRatLinearCurve2D, AbstractRealLinearCurve2D
- public abstract class AbstractLinearCurve2D
- extends AbstractGeomObject2D
- implements LinearCurve2D
An abstract class extended by AbstractIntLinearCurve2D and
AbstractRatLinearCurve2D.
- Version:
- $Id: AbstractLinearCurve2D.java,v 1.4 2001/05/16 13:44:56 lv Exp $
- Author:
- Luca Vismara (lv)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NEGATIVE
protected static final int NEGATIVE
ZERO
protected static final int ZERO
POSITIVE
protected static final int POSITIVE
INFINITE
protected static final int INFINITE
slope_
protected int slope_
bottom_
protected Point2D bottom_
top_
protected Point2D top_
left_
protected Point2D left_
right_
protected Point2D right_
AbstractLinearCurve2D
public AbstractLinearCurve2D()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
isHorizontal
public boolean isHorizontal()
- Specified by:
isHorizontal in interface LinearCurve2D
- Following copied from interface:
jdsl.geomobj.api.LinearCurve2D
- Returns:
- whether this is horizontal
isVertical
public boolean isVertical()
- Specified by:
isVertical in interface LinearCurve2D
- Following copied from interface:
jdsl.geomobj.api.LinearCurve2D
- Returns:
- whether this is vertical
isIncreasing
public boolean isIncreasing()
- Specified by:
isIncreasing in interface LinearCurve2D
- Following copied from interface:
jdsl.geomobj.api.LinearCurve2D
- Returns:
- whether this has a finite positive slope
isDecreasing
public boolean isDecreasing()
- Specified by:
isDecreasing in interface LinearCurve2D
- Following copied from interface:
jdsl.geomobj.api.LinearCurve2D
- Returns:
- whether this has a finite negative slope