* * @param x @ * @param y * @param z * @param rotation * @return */
| 202 | * @return |
| 203 | */ |
| 204 | Ui::viewport_pos gameToScreen(const Pos3& loc, int rotation) |
| 205 | { |
| 206 | auto rotLoc = Math::Vector::rotate(loc, rotation); |
| 207 | return Ui::viewport_pos(rotLoc.y - rotLoc.x, ((rotLoc.y + rotLoc.x) >> 1) - loc.z); |
| 208 | } |
| 209 | } |
no test coverage detected