![]() |
GemaCoreLib
The GeMA Core library
|
Implementation of utilitary functions for working with vectors. More...
Namespaces | |
GmVectorUtils | |
Groups utilitary routines for working with vectors. | |
Functions | |
void | GmVectorUtils::print (const GmVector &v, const GmLogCategory &logger, GmLogLevel level, int fieldWidth, char format, int precision) |
Prints the vector using the specified logger, level and precision fields. Values are separated by spaces. | |
QString | GmVectorUtils::toString (const GmVector &v, int fieldWidth, char format, int precision, bool noBraces) |
Serializes the vector to a string using the specified precision fields. Coordinates are surrounded by [] (unless noBraces is true) and values separated by ', '. | |
void | GmVectorUtils::fillFromLuaTable (GmVector &v, LuaTable &t) |
Resizes and fills the vector v to receive the data stored in a lua table. | |
bool | GmVectorUtils::fillFromLuaTable (GmVector &v, LuaTable &t, int n) |
Resizes and fills the vector v to receive the data stored in a lua table. More... | |
Implementation of utilitary functions for working with vectors.