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