jdsl.geomobj.api
Interface GeomSelector2D
- All Known Implementing Classes:
- GeomSelector2DImpl
- public interface GeomSelector2D
A collection of methods for choosing a geometric object according
to the result of a geometric test. The parameters of the methods
are interfaces.
- Version:
- $Id: GeomSelector2D.java,v 1.1 2000/03/06 21:30:36 lv Exp $
- Author:
- Luca Vismara (lv)
closer
public Point2D closer(Point2D q1,
Point2D q2,
Point2D p)
- Parameters:
q1
- a pointq2
- a pointp
- a point- Returns:
- the closer point to p between q1 and q2 (either q1 or q2
if they are equidistant from p)
- Throws:
InvalidPointException
- if either q1 or q2 or p is
Point2D.INFINITE
farther
public Point2D farther(Point2D q1,
Point2D q2,
Point2D p)
- Parameters:
q1
- a pointq2
- a pointp
- a point- Returns:
- the farther point to p between q1 and q2 (either q1 or q2
if they are equidistant from p)
- Throws:
InvalidPointException
- if either q1 or q2 or p is
Point2D.INFINITE