MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / test_dot_perpendicular

Function test_dot_perpendicular

tests/geometry/test-perpendicular.cpp:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void test_dot_perpendicular()
47{
48 const geode::Vector2D v1{ { 0, 1 } };
49 const geode::Vector2D v2{ { 1, 0 } };
50 const auto dot_perp = geode::dot_perpendicular( v1, v2 );
51 const auto dot = geode::dot_perpendicular( geode::perpendicular( v1 ), v2 );
52
53 geode::OpenGeodeGeometryException::test(
54 dot_perp == -1 && dot == 0, "Wrong result for dot_perpendicular" );
55}
56
57void test()
58{

Callers 1

testFunction · 0.70

Calls 3

dot_perpendicularFunction · 0.85
perpendicularFunction · 0.85
testFunction · 0.70

Tested by

no test coverage detected