![JAR search and dependency download from the Maven repository](/logo.png)
gen.lib.pathplan.util__c Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package gen.lib.pathplan;
import static smetana.core.debug.SmetanaDebug.ENTERING;
import static smetana.core.debug.SmetanaDebug.LEAVING;
import gen.annotation.Original;
import gen.annotation.Unused;
import h.ST_Ppoly_t;
import h.ST_pointf;
import smetana.core.CArray;
import smetana.core.Globals;
import smetana.core.ZType;
public class util__c {
//3 ct6tszngugakbl42zkaqrt7p1
// void make_polyline(Ppolyline_t line, Ppolyline_t* sline)
@Unused
@Original(version="2.38.0", path="lib/pathplan/util.c", name="make_polyline", key="ct6tszngugakbl42zkaqrt7p1", definition="void make_polyline(Ppolyline_t line, Ppolyline_t* sline)")
public static void make_polyline(Globals zz, ST_Ppoly_t line, ST_Ppoly_t sline) {
make_polyline_(zz, line.copy(), sline);
}
private static void make_polyline_(Globals zz, ST_Ppoly_t line, ST_Ppoly_t sline) {
ENTERING("ct6tszngugakbl42zkaqrt7p1","make_polyline_");
try {
int i, j;
int npts = 4 + 3*(line.pn-2);
if (npts > zz.isz) {
zz.ispline = CArray.REALLOC__(npts, zz.ispline, ZType.ST_pointf);
zz.isz = npts;
}
j = i = 0;
zz.ispline.get__(j+1).___(line.ps.get__(i));
zz.ispline.get__(j ).___(line.ps.get__(i));
j += 2;
i++;
for (; i < line.pn-1; i++) {
zz.ispline.get__(j+2).___(line.ps.get__(i));
zz.ispline.get__(j+1).___(line.ps.get__(i));
zz.ispline.get__(j ).___(line.ps.get__(i));
j += 3;
}
zz.ispline.get__(j+1).___(line.ps.get__(i));
zz.ispline.get__(j ).___(line.ps.get__(i));
sline.pn = npts;
sline.ps = zz.ispline;
} finally {
LEAVING("ct6tszngugakbl42zkaqrt7p1","make_polyline_");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy