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

Function optuse_system2D

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

Source from the content-addressed store, hash-verified

61}
62
63void optuse_system2D()
64{
65 geode::Logger::info( "Optuse system 2D" );
66 const geode::CoordinateSystem2D coord_system{
67 { geode::Vector2D{ { 1, 0 } }, geode::Vector2D{ { -1, 1 } } },
68 geode::Point2D{ { 1, 1 } }
69 };
70 check_point(
71 coord_system, geode::Point2D{ { 0, 1 } }, geode::Point2D{ { -1, 0 } } );
72 check_point( coord_system, geode::Point2D{ { 0, 0 } },
73 geode::Point2D{ { -2, -1 } } );
74 check_point( coord_system, geode::Point2D{ { -1, 0 } },
75 geode::Point2D{ { -3, -1 } } );
76 check_point(
77 coord_system, geode::Point2D{ { 2, 0 } }, geode::Point2D{ { 0, -1 } } );
78}
79
80void orthonormal_system3D()
81{

Callers 1

testFunction · 0.85

Calls 2

infoFunction · 0.85
check_pointFunction · 0.85

Tested by

no test coverage detected