mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-06-26 14:38:30 +02:00
18 lines
605 B
ActionScript
18 lines
605 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 degrees into radians. */
|
||
|
public function deg2rad(deg:Number):Number
|
||
|
{
|
||
|
return deg / 180.0 * Math.PI;
|
||
|
}
|
||
|
}
|