/** * Returns the point that is at the specified length * along the path. * * @param length The length along the path. * @return The point. */ public Point2D pointAtLength(float length) { return pathLength.pointAtLength(length); } }
/** * Returns the point that is at the specified length * along the path. * * @param length The length along the path. * @return The point. */ public Point2D pointAtLength(float length) { return pathLength.pointAtLength(length); } }
/** * Returns the point that is at the specified length * along the path. * * @param length The length along the path. * @return The point. */ public Point2D pointAtLength(float length) { return pathLength.pointAtLength(length); } }
/** * Returns the point at the given distance along the path. */ public Point2D getPointAtLength(float distance) { PathLength pl = getPathLengthObj(); return pl.pointAtLength(distance); }
/** * Returns the point at the given distance along the path. */ public Point2D getPointAtLength(float distance) { PathLength pl = getPathLengthObj(); return pl.pointAtLength(distance); }
/** * Returns the point at the given distance along the path. */ public Point2D getPointAtLength(float distance) { PathLength pl = getPathLengthObj(); return pl.pointAtLength(distance); }
/** * Returns the point that is the given proportion along the path segment * given by the specified index. */ public Point2D pointAtLength(int index, float proportion) { if (!initialised) { initialise(); } if (index < 0 || index >= segmentIndexes.length) { return null; } PathSegment seg = (PathSegment) segments.get(segmentIndexes[index]); float start = seg.getLength(); float end; if (index == segmentIndexes.length - 1) { end = pathLength; } else { seg = (PathSegment) segments.get(segmentIndexes[index + 1]); end = seg.getLength(); } return pointAtLength(start + (end - start) * proportion); }
/** * Returns the point that is the given proportion along the path segment * given by the specified index. */ public Point2D pointAtLength(int index, float proportion) { if (!initialised) { initialise(); } if (index < 0 || index >= segmentIndexes.length) { return null; } PathSegment seg = (PathSegment) segments.get(segmentIndexes[index]); float start = seg.getLength(); float end; if (index == segmentIndexes.length - 1) { end = pathLength; } else { seg = (PathSegment) segments.get(segmentIndexes[index + 1]); end = seg.getLength(); } return pointAtLength(start + (end - start) * proportion); }
/** * Returns the point that is the given proportion along the path segment * given by the specified index. */ public Point2D pointAtLength(int index, float proportion) { if (!initialised) { initialise(); } if (index < 0 || index >= segmentIndexes.length) { return null; } PathSegment seg = (PathSegment) segments.get(segmentIndexes[index]); float start = seg.getLength(); float end; if (index == segmentIndexes.length - 1) { end = pathLength; } else { seg = (PathSegment) segments.get(segmentIndexes[index + 1]); end = seg.getLength(); } return pointAtLength(start + (end - start) * proportion); }
Point2D charMidPoint = pl.pointAtLength(charMidPos);
Point2D charMidPoint = pl.pointAtLength(charMidPos);
Point2D charMidPoint = pl.pointAtLength(charMidPos);
Point2D p = pathLength.pointAtLength(point); float ang; if (rotateAuto) { (float) p.getY(), ang); } else { Point2D p = pathLength.pointAtLength(pathLength.lengthOfPath()); float ang; if (rotateAuto) { Point2D p = pathLength.pointAtLength(pathLength.lengthOfPath()); float ang; if (rotateAuto) {
Point2D p = pathLength.pointAtLength(point); float ang; if (rotateAuto) { (float) p.getY(), ang); } else { Point2D p = pathLength.pointAtLength(pathLength.lengthOfPath()); float ang; if (rotateAuto) { Point2D p = pathLength.pointAtLength(pathLength.lengthOfPath()); float ang; if (rotateAuto) {
Point2D p = pathLength.pointAtLength(point); float ang; if (rotateAuto) { (float) p.getY(), ang); } else { Point2D p = pathLength.pointAtLength(pathLength.lengthOfPath()); float ang; if (rotateAuto) { Point2D p = pathLength.pointAtLength(pathLength.lengthOfPath()); float ang; if (rotateAuto) {