| 209 | } |
| 210 | |
| 211 | Vector2 Convert2DPositionToNDC(const Vector2& pos) |
| 212 | { |
| 213 | return Vector2( |
| 214 | ((pos.x * 2) / DISPLAY_SPACE_RES.x) - 1.0f, |
| 215 | 1.0f - ((pos.y * 2) / DISPLAY_SPACE_RES.y)); |
| 216 | } |
| 217 | |
| 218 | Vector2 ConvertNDCTo2DPosition(const Vector2& ndc) |
| 219 | { |
no test coverage detected