public SafeDivisionWrapper <W, TW> Negate(SafeDivisionWrapper <W, TW> a) { return(new SafeDivisionWrapper <W, TW>(default(TW).Negate(a.num), a.den)); }
public SafeDivisionWrapper <W, TW> Divide(SafeDivisionWrapper <W, TW> a, SafeDivisionWrapper <W, TW> b) { return(new SafeDivisionWrapper <W, TW>(default(TW).Multiply(a.num, b.den), default(TW).Multiply(a.den, b.num))); }
public byte[] Serialize(SafeDivisionWrapper <W, TW> a) { throw new System.NotImplementedException(); }
public SafeDivisionWrapper <W, TW> Subtract(SafeDivisionWrapper <W, TW> a, SafeDivisionWrapper <W, TW> b) { return(new SafeDivisionWrapper <W, TW>(default(TW).Subtract(default(TW).Multiply(a.num, b.den), default(TW).Multiply(b.num, a.den)), default(TW).Multiply(a.den, b.den))); }
public string ToString(SafeDivisionWrapper <W, TW> a) { return(default(TW).ToString(a.num) + " / " + default(TW).ToString(a.den)); }
public bool IsZero(SafeDivisionWrapper <W, TW> a) { return(default(TW).IsZero(a.num)); }
public bool AreEqual(SafeDivisionWrapper <W, TW> a, SafeDivisionWrapper <W, TW> b) { return(default(TW).AreEqual(a.num, b.num) && default(TW).AreEqual(a.den, b.den)); }
public SafeDivisionWrapper <W, TW> Forward(SafeDivisionWrapper <W, TW> a) { return(a); }
public SafeDivisionWrapper <W, TW> Copy(SafeDivisionWrapper <W, TW> a) { return(new SafeDivisionWrapper <W, TW>(default(TW).Copy(a.num), default(TW).Copy(a.den))); }