public static Angle mix(double amount,Angle value1,Angle value2){
  if (value1 == null || value2 == null) {
    throw new IllegalArgumentException("Angle Is Null");
  }
  if (amount < 0)   return value1;
 else   if (amount > 1)   return value2;
  Quaternion quat=Quaternion.slerp(amount,Quaternion.fromAxisAngle(value1,Vec4.UNIT_X),Quaternion.fromAxisAngle(value2,Vec4.UNIT_X));
  Angle angle=quat.getRotationX();
  if (Double.isNaN(angle.degrees))   return null;
  return angle;
}

public static Angle mix ( double amount , Angle value1 , Angle value2 ) { if ( value1 == null || value2 == null ) { throw new IllegalArgumentException ( "Angle Is Null" ) ; } if ( amount < 0 ) return value1 ; else if ( amount > 1 ) return value2 ; Quaternion quat = Quaternion . slerp ( amount , Quaternion . fromAxisAngle ( value1 , Vec4 . UNIT_X ) , Quaternion . fromAxisAngle ( value2 , Vec4 . UNIT_X ) ) ; Angle angle = quat . getRotationX ( ) ; if ( Double . isNaN ( angle . degrees ) ) return null ; return angle ; }
linearly interpolates between two angles .
