17 #include <sbml/packages/render/sbml/Transformation.h>
32 for (i = 0; i < 12; ++i)
34 mMatrix[i] = std::numeric_limits<double>::quiet_NaN();
45 for (i = 0; i < 12; ++i)
58 for (i = 0; i < 12; ++i)
82 const double CLTransformation::IDENTITY3D[12] = {1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0};
92 for (i = 0; result && i < 12; ++i)
128 std::ostringstream os;
132 for (i = 1; i < 12; ++i)
134 os <<
"," << mMatrix[i];
150 std::string delimiter =
",";
151 std::size_t lastPos = transformationString.find_first_not_of(delimiter);
153 unsigned int index = 0;
155 while (lastPos != std::string::npos)
163 pos = transformationString.find_first_of(delimiter, lastPos);
164 double value = strtod(transformationString.substr(lastPos, pos - lastPos).c_str(), NULL);
167 lastPos = transformationString.find_first_not_of(delimiter, pos);
170 if (!result || index != 12)