From: Martin <ma...@he...> - 2010-02-11 10:13:54
|
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 |