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

Function acute_system2D

tests/geometry/test-coordinate-system.cpp:46–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void acute_system2D()
47{
48 geode::Logger::info( "Acute system 2D" );
49 const geode::CoordinateSystem2D coord_system{
50 { geode::Vector2D{ { 1, 0 } }, geode::Vector2D{ { 1, 1 } } },
51 geode::Point2D{ { 1, 1 } }
52 };
53 check_point(
54 coord_system, geode::Point2D{ { 0, 1 } }, geode::Point2D{ { -1, 0 } } );
55 check_point(
56 coord_system, geode::Point2D{ { 0, 0 } }, geode::Point2D{ { 0, -1 } } );
57 check_point( coord_system, geode::Point2D{ { -1, 0 } },
58 geode::Point2D{ { -1, -1 } } );
59 check_point(
60 coord_system, geode::Point2D{ { 2, 0 } }, geode::Point2D{ { 2, -1 } } );
61}
62
63void optuse_system2D()
64{

Callers 1

testFunction · 0.85

Calls 2

infoFunction · 0.85
check_pointFunction · 0.85

Tested by

no test coverage detected