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)

Inner classes inherited from class jdsl.geomobj.api.GeomObject2D
GeomObject2D.NoneGeomObject2D
 
Fields inherited from interface jdsl.geomobj.api.GeomObject2D
NONE
 
Method Summary
 Direction2D direction()
           
 boolean isDecreasing()
           
 boolean isHorizontal()
           
 boolean isIncreasing()
           
 boolean isVertical()
           
 
Methods inherited from interface jdsl.geomobj.api.OpenCurve2D
points
 
Methods inherited from interface jdsl.geomobj.api.GeomObject
arithmeticType, dim
 

Method Detail

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