MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / doDataLines

Method doDataLines

src/main/java/field/graphics/FLine.java:606–624  ·  view source on GitHub ↗
(Collection<Object> m)

Source from the content-addressed store, hash-verified

604 else lineTo((Vec2) o);
605 first = false;
606 } else if (o instanceof Vec3) {
607 if (first) moveTo((Vec3) o);
608 else lineTo((Vec3) o);
609 first = false;
610 } else if (o instanceof Collection) {
611 doDataLines((Collection) o);
612 first = true;
613 } else {
614 throw new IllegalArgumentException(" cannot interpret :" + o);
615 }
616 }
617 }
618
619 protected List<Object> transform(Collection<Object> input, Function<Object, Object>... transformation) {
620 List<Object> a = new ArrayList<Object>(input);
621 List<Object> o = new ArrayList<Object>();
622 boolean workDone = false;
623 do {
624 workDone = false;
625 for (int i = 0; i < a.size(); i++) {
626 Object q = a.get(i);
627 if (q instanceof Vec2 || q instanceof Vec3) {

Callers 1

dataLinesMethod · 0.95

Calls 2

moveToMethod · 0.95
lineToMethod · 0.95

Tested by

no test coverage detected