public static function minAngle(from:Number, to:Number):Number { ... return from + (cw < ccw ? cw : - ccw); }