public final class Utils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static float |
shortestRotation(float heading,
float previousHeading)
Util for finding the shortest path from the current rotated degree to the new degree.
|
public static float shortestRotation(float heading,
float previousHeading)
heading - the new position of the rotationpreviousHeading - the current position of the rotation