public bool Equals(float a, float b) { if (this.m_Relative) { return(FloatComparer.AreEqualRelative(a, b, this.m_Error)); } return(FloatComparer.AreEqual(a, b, this.m_Error)); }
static public int ctor_s(IntPtr l) { try { UnityEngine.Assertions.Comparers.FloatComparer o; o = new UnityEngine.Assertions.Comparers.FloatComparer(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int Equals__Object(IntPtr l) { try { UnityEngine.Assertions.Comparers.FloatComparer self = (UnityEngine.Assertions.Comparers.FloatComparer)checkSelf(l); System.Object a1; checkType(l, 2, out a1); var ret = self.Equals(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int ctor__Single_s(IntPtr l) { try { UnityEngine.Assertions.Comparers.FloatComparer o; System.Single a1; checkType(l, 1, out a1); o = new UnityEngine.Assertions.Comparers.FloatComparer(a1); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static new public int GetHashCode(IntPtr l) { try { UnityEngine.Assertions.Comparers.FloatComparer self = (UnityEngine.Assertions.Comparers.FloatComparer)checkSelf(l); System.Single a1; checkType(l, 2, out a1); var ret = self.GetHashCode(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); UnityEngine.Assertions.Comparers.FloatComparer o; if (argc == 1) { o = new UnityEngine.Assertions.Comparers.FloatComparer(); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(bool))) { System.Boolean a1; checkType(l, 2, out a1); o = new UnityEngine.Assertions.Comparers.FloatComparer(a1); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(float))) { System.Single a1; checkType(l, 2, out a1); o = new UnityEngine.Assertions.Comparers.FloatComparer(a1); pushValue(l, true); pushValue(l, o); return(2); } else if (argc == 3) { System.Single a1; checkType(l, 2, out a1); System.Boolean a2; checkType(l, 3, out a2); o = new UnityEngine.Assertions.Comparers.FloatComparer(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } return(error(l, "New object failed.")); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif int argc = LuaDLL.lua_gettop(l); UnityEngine.Assertions.Comparers.FloatComparer o; if (argc == 1) { o = new UnityEngine.Assertions.Comparers.FloatComparer(); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(bool))) { System.Boolean a1; checkType(l, 2, out a1); o = new UnityEngine.Assertions.Comparers.FloatComparer(a1); pushValue(l, true); pushValue(l, o); return(2); } else if (matchType(l, argc, 2, typeof(float))) { System.Single a1; checkType(l, 2, out a1); o = new UnityEngine.Assertions.Comparers.FloatComparer(a1); pushValue(l, true); pushValue(l, o); return(2); } else if (argc == 3) { System.Single a1; checkType(l, 2, out a1); System.Boolean a2; checkType(l, 3, out a2); o = new UnityEngine.Assertions.Comparers.FloatComparer(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } return(error(l, "New object failed.")); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }