MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / SpanMinMax

Function SpanMinMax

modules/piu/MC/piuRegion.c:668–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668void SpanMinMax(PiuCoordinate* span, PiuCoordinate* min, PiuCoordinate* max)
669{
670 PiuCoordinate c = *span;
671 if (c) {
672 PiuCoordinate left = span[1];
673 PiuCoordinate right = span[c];
674 if (*min > left) *min = left;
675 if (*max < right) *max = right;
676 }
677}
678
679
680

Callers 1

PiuRegionCombineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected