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

Function test_operators

tests/geometry/test-point.cpp:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void test_operators()
50{
51 const geode::Point3D p{ { 2, 1.0, 2.6 } };
52 const geode::Point3D p2 = p;
53 const geode::Point3D answer{ { 4, 2, 5.2 } };
54 geode::OpenGeodeGeometryException::test(
55 p + p2 == answer, "Points should be equal" );
56 geode::OpenGeodeGeometryException::test(
57 p * 2 == answer, "Points should be equal" );
58 geode::OpenGeodeGeometryException::test(
59 p - p2 == geode::Point3D{}, "Points should be equal" );
60 geode::OpenGeodeGeometryException::test(
61 answer / 2 == p, "Points should be equal" );
62}
63
64void test_interpolation()
65{

Callers 1

testFunction · 0.70

Calls 1

testFunction · 0.70

Tested by

no test coverage detected