![]() |
SAGE
A Simple Academic Game Engine
|
Code for the controller class CController.

Functions | |
| Vector2 | normalize (Vector2 v) |
| Vector2 normalize | ( | Vector2 | v | ) |
Helper function that normalizes a vector representing a thumb stick's position to \([-1.0, 1.0]^2\), clipping at the maximum value and adjusting for a dead zone at the middle position.
| v | Vector to be normalized. |
