Hi Michael,

by the way i looked deeper in the method extractPoint  of the
LengthIndexLine and at the bottom I found the method

public static Coordinate pointAlongSegmentByFraction(Coordinate p0,
Coordinate p1, double frac)
  {
    if (frac <= 0.0) return p0;
    if (frac >= 1.0) return p1;

    double x = (p1.x - p0.x) * frac + p0.x;
    double y = (p1.y - p0.y) * frac + p0.y;
    return new Coordinate(x, y);
  }

That actually computes  the result  and this is pretty the same calculation
I wanted to use ;-) ("Vector" geometry)

Cheers,
Martin


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to