| 42 | // Linalg Types |
| 43 | inline void to_json(json & archive, const int2 & m) { archive = json{ { "x", m.x() },{ "y", m.y() } }; } |
| 44 | inline void from_json(const json & archive, int2 & p) { p.x = archive.at("x").get<int32_t>(); p.y = archive.at("y").get<int32_t>(); } |
| 45 | |
| 46 | inline void to_json(json & archive, const int3 & m) { archive = json{ { "x", m.x() },{ "y", m.y() },{ "z", m.z() } }; } |
| 47 | inline void from_json(const json & archive, int3 & p) { p.x = archive.at("x").get<int32_t>(); p.y = archive.at("y").get<int32_t>(); p.z = archive.at("z").get<int32_t>(); } |
nothing calls this directly
no test coverage detected