Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.llList2Rot C# (CSharp) Method

llList2Rot() public method

public llList2Rot ( Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.list src, int index ) : Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Quaternion
src Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.list
index int
return Aurora.ScriptEngine.AuroraDotNetEngine.LSL_Types.Quaternion
        public LSL_Rotation llList2Rot(LSL_List src, int index)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return new LSL_Rotation();

            if (index < 0)
            {
                index = src.Length + index;
            }
            if (index >= src.Length || index < 0)
            {
                return new LSL_Rotation(0, 0, 0, 1);
            }
            if (src.Data[index] is LSL_Rotation)
            {
                return (LSL_Rotation)src.Data[index];
            }
            return new LSL_Rotation(src.Data[index].ToString());
        }
LSL_Api