| 112 | } |
| 113 | |
| 114 | Vec4B jsonToVec4B(Json const& v) { |
| 115 | if (v.type() != Json::Type::Array || v.size() != 4) |
| 116 | throw JsonException("Json not an array of size 4 in jsonToVec4B"); |
| 117 | |
| 118 | return Vec4B(v.getInt(0), v.getInt(1), v.getInt(2), v.getInt(3)); |
| 119 | } |
| 120 | |
| 121 | Vec4I jsonToVec4I(Json const& v) { |
| 122 | if (v.type() != Json::Type::Array || v.size() != 4) |
no test coverage detected