de.looksgood.ani
Class AniUtil

java.lang.Object
  extended by de.looksgood.ani.AniUtil

public class AniUtil
extends java.lang.Object


Constructor Summary
AniUtil()
           
 
Method Summary
static float shortRotation(float theAngle1, float theAngle2)
          Calculates the minimal difference of two angles given in radians.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AniUtil

public AniUtil()
Method Detail

shortRotation

public static float shortRotation(float theAngle1,
                                  float theAngle2)
Calculates the minimal difference of two angles given in radians. by Hartmut Bohnacker.

Parameters:
theAngle1 - Angle to subtract from
theAngle2 - Angle to subtract
Returns:
Angle between -PI and PI (-180Á and 180Á)


processing library Ani by Benedikt Gross. (c) 2015