MCPcopy Create free account
hub / github.com/JetBrains/skija / convexity

Method convexity

tests/java/PathTest.java:77–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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()) {

Callers

nothing calls this directly

Calls 4

closePathMethod · 0.80
lineToMethod · 0.80
assertEqualsMethod · 0.80
isConvexMethod · 0.80

Tested by

no test coverage detected