| 90 | } |
| 91 | |
| 92 | Vec3I jsonToVec3I(Json const& v) { |
| 93 | if (v.type() != Json::Type::Array || v.size() != 3) |
| 94 | throw JsonException("Json not an array of size 3 in jsonToVec3I"); |
| 95 | |
| 96 | return Vec3I(v.getInt(0), v.getInt(1), v.getInt(2)); |
| 97 | } |
| 98 | |
| 99 | Json jsonFromVec3I(Vec3I const& v) { |
| 100 | JsonArray result; |
no test coverage detected