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

Function equal_polygons

test/test_minkowski.cpp:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "minkowski.h"
6
7bool equal_polygons(const vector<pt> & p, const vector<pt> & q){
8 if(p.size() != q.size())
9 return false;
10 for(size_t i = 0; i < p.size(); i++){
11 if(p[i].x != q[i].x || p[i].y != q[i].y)
12 return false;
13 }
14 return true;
15}
16
17bool test1(){
18 vector<pt> p = {

Callers 2

test1Function · 0.85
test2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected