public Angle angularDistanceTo(Angle angle){
  if (angle == null) {
    throw new IllegalArgumentException("Angle Is Null");
  }
  double differenceDegrees=angle.subtract(this).degrees;
  if (differenceDegrees < -180)   differenceDegrees+=360;
 else   if (differenceDegrees > 180)   differenceDegrees-=360;
  double absAngle=Math.abs(differenceDegrees);
  return Angle.fromDegrees(absAngle);
}

public Angle angularDistanceTo ( Angle angle ) { if ( angle == null ) { throw new IllegalArgumentException ( "Angle Is Null" ) ; } double differenceDegrees = angle . subtract ( this ) . degrees ; if ( differenceDegrees < - 180 ) differenceDegrees += 360 ; else if ( differenceDegrees > 180 ) differenceDegrees -= 360 ; double absAngle = Math . abs ( differenceDegrees ) ; return Angle . fromDegrees ( absAngle ) ; }
computes the shortest distance between this and angle , as an angle .
