MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / jsonToPolyI

Function jsonToPolyI

source/core/StarJsonExtra.cpp:260–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260PolyI jsonToPolyI(Json const& v) {
261 PolyI poly;
262
263 for (Json const& vertex : v.iterateArray())
264 poly.add(jsonToVec2I(vertex));
265
266 return fixInsideOutPoly(poly);
267}
268
269Json jsonFromPolyF(PolyF const& poly) {
270 JsonArray vertexList;

Callers 1

loadFromAssetsMethod · 0.85

Calls 4

jsonToVec2IFunction · 0.85
fixInsideOutPolyFunction · 0.85
iterateArrayMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected