jdsl.geomobj.api
Interface LinearCurve2D
- All Superinterfaces:
- Curve2D, GeomObject, GeomObject2D, OpenCurve2D
- All Known Subinterfaces:
- Line2D, Ray2D, Segment2D
- All Known Implementing Classes:
- AbstractLinearCurve2D, AbstractRealLinearCurve2D, AbstractIntLinearCurve2D, AbstractRatLinearCurve2D
- public interface LinearCurve2D
- extends OpenCurve2D
Lines are special open curves with infinite length. It is straight
and hence represented in vector form and an arbitrary point. The
y component of the vector is always positive for convention.
- Version:
- $Id: LinearCurve2D.java,v 1.2 2000/03/22 20:23:36 lv Exp $
- Author:
- Luca Vismara (lv)
direction
public Direction2D direction()
- Returns:
- the direction associated with this
isHorizontal
public boolean isHorizontal()
- Returns:
- whether this is horizontal
isVertical
public boolean isVertical()
- Returns:
- whether this is vertical
isIncreasing
public boolean isIncreasing()
- Returns:
- whether this has a finite positive slope
isDecreasing
public boolean isDecreasing()
- Returns:
- whether this has a finite negative slope