ported over charter multikey and other stuff
Co-Authored-By: Ne_Eo <NeeEoo@users.noreply.github.com>
This commit is contained in:
@@ -839,6 +839,13 @@ class CoolUtil
|
||||
return file.file;
|
||||
}
|
||||
|
||||
@:noUsing public static function getClosestAngle(angle:Float, targetAngle:Float):Float {
|
||||
var diff:Float = angle - targetAngle;
|
||||
if (diff < -180) diff += 360;
|
||||
else if (diff > 180) diff -= 360;
|
||||
return angle - diff;
|
||||
}
|
||||
|
||||
public static function sortAlphabetically(array:Array<String>, ?lowercase:Bool=false) {
|
||||
array.sort(function(a1, a2):Int {
|
||||
if(lowercase) {
|
||||
|
||||
Reference in New Issue
Block a user