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

Method middleOf

src/main/java/fieldcef/plugins/PadsBox.java:161–167  ·  view source on GitHub ↗
(FLine f)

Source from the content-addressed store, hash-verified

159 }
160
161 public Vec2 middleOf(FLine f) {
162 FLine.MoveTo m = (FLine.MoveTo) f.nodes.get(0);
163 FLine.CubicTo c = (FLine.CubicTo) f.nodes.get(f.nodes.size() - 1);
164
165 return FLinesAndJavaShapes.evaluateCubicFrame(m.to.toVec2(), c.c1.toVec2(), c.c2.toVec2(), c.to.toVec2(), 0.5f,
166 new Vec2());
167 }
168
169 protected boolean checkForDeletion() {
170 if (head().parents().size() == 0 || tail().parents().size() == 0) this.disconnectFromAll();

Callers 2

defaultdrawsLinesMethod · 0.95
updateFrameToMiddleMethod · 0.95

Calls 4

evaluateCubicFrameMethod · 0.95
getMethod · 0.65
sizeMethod · 0.45
toVec2Method · 0.45

Tested by

no test coverage detected