| 126 | } |
| 127 | |
| 128 | Vec4F jsonToVec4F(Json const& v) { |
| 129 | if (v.type() != Json::Type::Array || v.size() != 4) |
| 130 | throw JsonException("Json not an array of size 4 in jsonToVec4B"); |
| 131 | |
| 132 | return Vec4F(v.getFloat(0), v.getFloat(1), v.getFloat(2), v.getFloat(3)); |
| 133 | } |
| 134 | |
| 135 | RectD jsonToRectD(Json const& v) { |
| 136 | if (v.type() != Json::Type::Array) |
no test coverage detected