()
| 80 | |
| 81 | |
| 82 | public void convexity() { |
| 83 | try (Path p = new PathBuilder().lineTo(40, 20).lineTo(0, 40).lineTo(0, 0).closePath().build()) { |
| 84 | assertEquals(true, p.isConvex()); |
| 85 | } |
| 86 | |
| 87 | try (Path p = new PathBuilder().lineTo(40, 40).lineTo(40, 0).lineTo(0, 40).lineTo(0, 0).closePath().build()) { |
| 88 | assertEquals(false, p.isConvex()); |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | public void isShape() { |
| 93 | for (var dir: PathDirection.values()) { |
nothing calls this directly
no test coverage detected