Skip to content

Commit

Permalink
Rename angle conversion functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Korshun committed May 7, 2016
1 parent 0e95f83 commit a721697
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/acsunits.acs
Original file line number Diff line number Diff line change
@@ -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;
}
Expand Down

0 comments on commit a721697

Please sign in to comment.