Added toString function to utility

This commit is contained in:
Matt Hill
2014-06-20 22:29:44 -04:00
parent c5b577b48e
commit 4291547d6f
2 changed files with 25 additions and 0 deletions

View File

@@ -375,3 +375,23 @@ LineSegment LineSegment::getParallelLine(float distance)
return result;
}
std::string toString(int value)
{
stringstream ss;
ss << value;
return ss.str();
}
std::string toString(float value)
{
stringstream ss;
ss << value;
return ss.str();
}
std::string toString(double value)
{
stringstream ss;
ss << value;
return ss.str();
}