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

Function check_point

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

Source from the content-addressed store, hash-verified

30
31template < geode::index_t dimension >
32void check_point( const geode::CoordinateSystem< dimension >& coord_system,
33 const geode::Point< dimension >& input,
34 const geode::Point< dimension >& output )
35{
36 const auto coordinates = coord_system.coordinates( input );
37 geode::OpenGeodeGeometryException::test(
38 coordinates.inexact_equal( output ), "Wrong coordinates ", dimension,
39 "D" );
40 const auto global_point = coord_system.global_coordinates( coordinates );
41 geode::OpenGeodeGeometryException::test(
42 input.inexact_equal( global_point ), "Wrong global coordinates ",
43 dimension, "D" );
44}
45
46void acute_system2D()
47{

Callers 5

acute_system2DFunction · 0.85
optuse_system2DFunction · 0.85
orthonormal_system3DFunction · 0.85
acute_system3DFunction · 0.85
optuse_system3DFunction · 0.85

Calls 4

coordinatesMethod · 0.80
global_coordinatesMethod · 0.80
testFunction · 0.70
inexact_equalMethod · 0.45

Tested by

no test coverage detected