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

Function main

test/test_check_segments_intersection.cpp:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "check-segments-inter.h"
6
7int main() {
8 assert(check_inter(pt(0, 0), pt(1, 1), pt(0, 1), pt(1, 0)));
9 assert(!check_inter(pt(0, 0), pt(1, 1), pt(2, 2), pt(3, 3)));
10 assert(check_inter(pt(0, 0), pt(1, 1), pt(2, 2), pt(1, 1)));
11 assert(check_inter(pt(0, 0), pt(1, 1), pt(1, 1), pt(1, 0)));
12 assert(!check_inter(pt(0, 0), pt(1, 0), pt(0, 1), pt(1, 1)));
13 assert(!check_inter(pt(0, 0), pt(1, 1), pt(2, 2), pt(2, 0)));
14 assert(!check_inter(pt(0, 0), pt(-1, -1), pt(0, 1), pt(1, 0)));
15 return 0;
16}

Callers

nothing calls this directly

Calls 1

ptClass · 0.85

Tested by

no test coverage detected