Skyline Lua API  Version 1.0 RC1
Lua Script Reference for Skyline Game Engine.
transform Class Reference

#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...
 

Detailed Description

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/

Member Function Documentation

float transform::degreeToRadian ( float  degree)

Convert a degree value into a radian value.

Parameters
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.

Parameters
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

The documentation for this class was generated from the following file: