drasys.or.geom.rect2
Interface PointI

All Known Implementing Classes:
Point

public interface PointI
extends Rect2I, PointI

An interface to abstractly access a point in the 2D rectangular coordinate system.


Method Summary
 double directionTo(PointI point)
          Returns the direction to the argument.
 double x()
          Returns the X coordinate.
 double y()
          Returns the Y coordinate.
 
Methods inherited from interface drasys.or.geom.rect2.Rect2I
centroid, distanceProxyTo, distanceTo, nearestPointTo, range
 
Methods inherited from interface drasys.or.geom.PointI
getCoordinate, getDirectionTo
 

Method Detail

x

public double x()
Returns the X coordinate.

y

public double y()
Returns the Y coordinate.

directionTo

public double directionTo(PointI point)
Returns the direction to the argument. The return value is in the range -PI to +PI and is measured from the direction of the positive x-axis. If angle is positive if 'point' is counterclockwise and negative if it is clockwise.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com