| 47 | } |
| 48 | |
| 49 | void 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 | |
| 64 | void test_interpolation() |
| 65 | { |