|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.omGraphics.awt.LineUtil
public class LineUtil
Various computations about plane geometry.
| Constructor Summary | |
|---|---|
LineUtil()
|
|
| Method Summary | |
|---|---|
static java.awt.geom.Point2D |
interpolatedPoint(java.awt.geom.Point2D A,
java.awt.geom.Point2D B,
double d)
Interpolates a point on a segment. |
static double |
norm(java.awt.geom.Point2D A,
java.awt.geom.Point2D B)
Computes the segment length |
static double |
norm2(java.awt.geom.Point2D A,
java.awt.geom.Point2D B)
Computes the segment square length |
protected static boolean |
retrievePoints(float length,
java.util.LinkedList<java.awt.geom.Point2D> points,
java.util.LinkedList<java.awt.geom.Point2D> polysegment)
Extract a length on a polyline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineUtil()
| Method Detail |
|---|
public static double norm2(java.awt.geom.Point2D A,
java.awt.geom.Point2D B)
A - the begin pointB - the end point
public static double norm(java.awt.geom.Point2D A,
java.awt.geom.Point2D B)
A - the begin pointB - the end point
public static java.awt.geom.Point2D interpolatedPoint(java.awt.geom.Point2D A,
java.awt.geom.Point2D B,
double d)
A - the begin pointB - the end pointd - the distance from A to the wanted point
protected static boolean retrievePoints(float length,
java.util.LinkedList<java.awt.geom.Point2D> points,
java.util.LinkedList<java.awt.geom.Point2D> polysegment)
length - the curve length to extract from pointspoints - the original pointspolysegment - the returned points
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||