|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Distance<Coord extends java.lang.Number & java.lang.Comparable<? super Coord>,P extends Point<Coord>>
The Distance interface encapsulates an algorithm for determining the distance between two points.
Method Summary | |
---|---|
double |
distance(P from,
P to)
Returns the distance between two points. |
double |
distance2(P from,
P to)
Returns the square of the distance between two points. |
Method Detail |
---|
double distance(P from, P to)
from
- The first end point.to
- The second end point.
double distance2(P from, P to)
from
- The first end point.to
- The second end point.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |