Warning: session_start(): open(/var/lib/php/sessions/sess_31b68v2rtbcpnkve1jmg3o3ocm, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static PtBuffer onePathToIntervalsOfFixedLength(OnePath path, double segmentLength) {
if (path == null) null;
new PtBuffer out;
int iPath = 0, lPath = path.size();
double step = lPath/nIntervals;
var it = path.pointIterator();
Pt p = it.next(), lastPoint = p;
while true {
int iPath2 = iPath;
while (it.hasNext() && (iPath2 == iPath
|| p.minus(lastPoint).length()+.5 < segmentLength)) {
p = it.next();
iPath2++;
}
if (iPath2 == iPath) break;
out.add(p);
lastPoint = p;
}
ret out;
}