jdsl.geomobj.api
Interface Direction2D

All Superinterfaces:
GeomObject, GeomObject2D
All Known Implementing Classes:
RealDirection2D, RatDirection2D, IntDirection2D

public interface Direction2D
extends GeomObject2D

This interface describes a two-dimensional direction.

Version:
$Id: Direction2D.java,v 1.2 2000/04/05 21:39:30 mdh 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 opposite()
           
 Direction2D perpendicular()
           
 double x()
          This approximate method is provided for visualization purposes only; computations should be performed through methods of GeomTester2D.
 double y()
          This approximate method is provided for visualization purposes only; computations should be performed through methods of GeomTester2D.
 
Methods inherited from interface jdsl.geomobj.api.GeomObject
arithmeticType, dim
 

Method Detail

perpendicular

public Direction2D perpendicular()
Returns:
this direction rotated counterclockwise by 90 degrees

opposite

public Direction2D opposite()
Returns:
this direction rotated by 180 degrees

x

public double x()
This approximate method is provided for visualization purposes only; computations should be performed through methods of GeomTester2D.
Returns:
a double approximation of the x coordinate of the point defining the direction

y

public double y()
This approximate method is provided for visualization purposes only; computations should be performed through methods of GeomTester2D.
Returns:
a double approximation of the y coordinate of the point defining the direction