![]() |
Skyline Lua API
Version 1.0 RC1
Lua Script Reference for Skyline Game Engine.
|
#include <LUA_API_Transform.h>
Public Member Functions | |
| float | degreeToRadian (float degree) |
| Convert a degree value into a radian value. More... | |
| float | radianToDegree (float radian) |
| Convert a radian value into a degree value. More... | |
This area covers transform functions. Use as transform.function(); For more information on how these functions can be used please visit the User Manual - http://www.chi-ad.com/Skyline/SDN/
| float transform::degreeToRadian | ( | float | degree | ) |
Convert a degree value into a radian value.
| degree | : The angle in degrees you wish to convert |
Here is a Small Example of how to use this function:
function onInit(objID)
degree = 45;
radian = transform.degreeToRadian( degree );
sky.print("radian: "..radian);
end
| float transform::radianToDegree | ( | float | radian | ) |
Convert a radian value into a degree value.
| radian | : The angle in radians you wish to convert |
Here is a Small Example of how to use this function:
function onInit(objID)
radian = 0.5;
degree = transform.radianToDegree( radian );
sky.print("degree: "..degree);
end