SqrMagnitude() public method

public SqrMagnitude ( ) : float
return float
Exemplo n.º 1
0
 static public int SqrMagnitude(IntPtr l)
 {
     try{
         UnityEngine.Vector4 self = (UnityEngine.Vector4)checkSelf(l);
         System.Single       ret  = self.SqrMagnitude();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Exemplo n.º 2
0
 static int SqrMagnitude(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Vector4 obj = (UnityEngine.Vector4)ToLua.CheckObject(L, 1, typeof(UnityEngine.Vector4));
         float o = obj.SqrMagnitude();
         LuaDLL.lua_pushnumber(L, o);
         ToLua.SetBack(L, 1, obj);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
 public static bool operator ==(Vector4 lhs, Vector4 rhs)
 {
     return(Vector4.SqrMagnitude(lhs - rhs) < 9.99999944E-11f);
 }
Exemplo n.º 4
0
 public static bool operator !=(Vector4 lhs, Vector4 rhs)
 {
     return((double)Vector4.SqrMagnitude(lhs - rhs) >= 9.99999943962493E-11);
 }
    static bool Vector4_SqrMagnitude(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 0)
        {
            UnityEngine.Vector4 argThis = (UnityEngine.Vector4)vc.csObj;                JSApi.setSingle((int)JSApi.SetType.Rval, (System.Single)(argThis.SqrMagnitude()));
            JSMgr.changeJSObj(vc.jsObjID, argThis);
        }

        return(true);
    }