Rotates by the given rotation in place.
| 175 | |
| 176 | // Rotates by the given rotation in place. |
| 177 | void TESSLINE::Rotate(const FCOORD rot) { |
| 178 | EDGEPT* pt = loop; |
| 179 | do { |
| 180 | int tmp = static_cast<int>(floor(pt->pos.x * rot.x() - |
| 181 | pt->pos.y * rot.y() + 0.5)); |
| 182 | pt->pos.y = static_cast<int>(floor(pt->pos.y * rot.x() + |
| 183 | pt->pos.x * rot.y() + 0.5)); |
| 184 | pt->pos.x = tmp; |
| 185 | pt = pt->next; |
| 186 | } while (pt != loop); |
| 187 | SetupFromPos(); |
| 188 | } |
| 189 | |
| 190 | // Moves by the given vec in place. |
| 191 | void TESSLINE::Move(const ICOORD vec) { |
no test coverage detected