18 #include <sbml/packages/render/sbml/Transformation2D.h>
29 for (i = 0; i < 12; ++i)
51 if (source.isSetMatrix())
68 for (i = 0; i < 6; ++i)
99 std::ostringstream os;
103 for (i = 1; i < 6; ++i)
105 os <<
"," << mMatrix2D[i];
154 std::string delimiter =
",";
155 std::size_t lastPos = transformationString.find_first_not_of(delimiter);
157 unsigned int index = 0;
159 while (lastPos != std::string::npos)
167 pos = transformationString.find_first_of(delimiter, lastPos);
168 double value = strtod(transformationString.substr(lastPos, pos - lastPos).c_str(), NULL);
171 lastPos = transformationString.find_first_not_of(delimiter, pos);
174 if (!result || index != 6)
191 pTransformation->setMatrix2D(this->
mMatrix2D);