From a7216977547b4c2be3d4c7592d61e6b8d815d3a1 Mon Sep 17 00:00:00 2001 From: Alexander Korshun Date: Sat, 7 May 2016 17:52:12 +0300 Subject: [PATCH] Rename angle conversion functions --- src/acsunits.acs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/acsunits.acs b/src/acsunits.acs index efc7236..ac81880 100644 --- a/src/acsunits.acs +++ b/src/acsunits.acs @@ -1,41 +1,41 @@ // Angles -function int deg2angle(int degrees) +function int deg2ang(int degrees) { return FixedDiv(degrees, 360.0); } -function int rad2angle(int radians) +function int rad2ang(int radians) { return FixedDiv(radians, PI * 2); } -function int angle2deg(int angle) +function int ang2deg(int angle) { return FixedMul(angle, 360.0); } -function int angle2rad(int angle) +function int ang2rad(int angle) { return FixedMul(angle, PI * 2); } function int deg2rad(int degrees) { - return angle2rad(deg2angle(degrees)); + return ang2rad(deg2ang(degrees)); } function int rad2deg(int radians) { - return angle2deg(rad2angle(radians)); + return ang2deg(rad2ang(radians)); } -function int byteang2angle(int byteang) +function int byte2ang(int byteang) { return byteang * 256; } -function int angle2byteang(int angle) +function int ang2byte(int angle) { return angle / 256; }