|
IMS2
Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
|
Functions | |
| template<class T > | |
| vector< T > | Vector_Difference (vector< T > v1, vector< T > v2) |
| Creates a vector containing the difference between two other vectors. More... | |
| template<typename M , typename V > | |
| void | MapToVec (const M &_map, V &_vector) |
| Appends all values in a map to a vector, ignoring keys. More... | |
This namespace is meant to contain any specialised algorithms that might be needed. implement simple wrapper-tasks for STL-algorithms as functions, create classes for more complex stuff
| void IMS_Algs::MapToVec | ( | const M & | _map, |
| V & | _vector | ||
| ) |
Appends all values in a map to a vector, ignoring keys.
| _map | The map from which to copy the values |
| _vector | The vector to which the values should be appended |
| vector<T> IMS_Algs::Vector_Difference | ( | vector< T > | v1, |
| vector< T > | v2 | ||
| ) |
Creates a vector containing the difference between two other vectors.
| v1 | reference vector |
| v2 | the vector to be subtracted from v1 |