(FLine f)
| 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(); |
no test coverage detected