158159160161162163164165
/** * Returns the point at the given distance along the path. */ public Point2D getPointAtLength(float distance) { PathLength pl = getPathLengthObj(); return pl.pointAtLength(distance); }
167168169170171172173174
/** * Returns the index of the path segment at the given distance along the * path. */ public int getPathSegAtLength(float distance) { PathLength pl = getPathLengthObj(); return pl.segmentAtLength(distance); }