| 103 | // ------------------------------------------------------------------------------------ |
| 104 | |
| 105 | inline vector<float,2> location ( |
| 106 | const matrix<float,0,1>& shape, |
| 107 | unsigned long idx |
| 108 | ) |
| 109 | /*! |
| 110 | requires |
| 111 | - idx < shape.size()/2 |
| 112 | - shape.size()%2 == 0 |
| 113 | ensures |
| 114 | - returns the idx-th point from the shape vector. |
| 115 | !*/ |
| 116 | { |
| 117 | return vector<float,2>(shape(idx*2), shape(idx*2+1)); |
| 118 | } |
| 119 | |
| 120 | // ------------------------------------------------------------------------------------ |
| 121 |
no outgoing calls
no test coverage detected