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