MCPcopy Create free account
hub / github.com/cp-algorithms/cp-algorithms / test1

Function test1

test/test_minkowski.cpp:17–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17bool test1(){
18 vector<pt> p = {
19 pt{0, 0},
20 pt{1, 0},
21 pt{0, 1}
22 };
23 vector<pt> q = {
24 pt{1, 1},
25 pt{0, 1},
26 pt{0, 0},
27 pt{1, 0}
28 };
29 return equal_polygons(
30 minkowski(p, q),
31 vector<pt>{
32 pt{0, 0},
33 pt{2, 0},
34 pt{2, 1},
35 pt{1, 2},
36 pt{0, 2}
37 });
38}
39
40bool test2(){
41 vector<pt> p = {

Callers 1

mainFunction · 0.70

Calls 1

equal_polygonsFunction · 0.85

Tested by

no test coverage detected