Example #1
0
 public static bool zero <T>(T x, [Member] string caller = null, [File] string file = null, [Line] int?line = null)
     where T : struct
 => !gmath.nonzero(x) ? true : throw Errors.NotNonzero(caller, file, line);
Example #2
0
 public static bool numeq <T>(T lhs, T rhs, [Member] string caller = null, [File] string file = null, [Line] int?line = null)
     where T : struct
 => gmath.eq(lhs, rhs) ? true : throw Errors.Equal(lhs, rhs);