public static GaPoTNumBiversor operator -(GaPoTNumBiversor v1, GaPoTNumBiversor v2) { var biversor = new GaPoTNumBiversor(); biversor.AddTerms(v1._termsDictionary.Values); biversor.AddTerms(v2._termsDictionary.Values.Select(t => - t)); return(biversor); }
public GaPoTNumBiversor GetBiversorPart() { var biversor = new GaPoTNumBiversor(); var scalarValue = GetTermValue(0); if (scalarValue != 0.0d) { biversor.AddTerm(new GaPoTNumBiversorTerm(scalarValue)); } biversor.AddTerms( GetTermsOfGrade(2).Select(t => t.ToBiversorTerm()) ); return(biversor); }