mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-09-27 16:57:25 +02:00
18 lines
614 B
ActionScript
18 lines
614 B
ActionScript
|
// =================================================================================================
|
||
|
//
|
||
|
// Starling Framework
|
||
|
// Copyright Gamua GmbH. All Rights Reserved.
|
||
|
//
|
||
|
// This program is free software. You can redistribute and/or modify it
|
||
|
// in accordance with the terms of the accompanying license agreement.
|
||
|
//
|
||
|
// =================================================================================================
|
||
|
|
||
|
package starling.utils
|
||
|
{
|
||
|
/** Converts an angle from radians into degrees. */
|
||
|
public function rad2deg(rad:Number):Number
|
||
|
{
|
||
|
return rad / Math.PI * 180.0;
|
||
|
}
|
||
|
}
|