Example #1
0
 public static bool ApproximateEquals(this Torus3d a, Torus3d b)
 => ApproximateEquals(a, b, Constant <double> .PositiveTinyValue);
Example #2
0
 public bool Equals(Torus3d other) =>
 Position.Equals(other.Position) &&
 Direction.Equals(other.Direction) &&
 MajorRadius.Equals(other.MajorRadius) &&
 MinorRadius.Equals(other.MinorRadius);
Example #3
0
 public static bool ApproximateEquals(this Torus3d a, Torus3d b, double tolerance) =>
 ApproximateEquals(a.Position, b.Position, tolerance) &&
 ApproximateEquals(a.Direction, b.Direction, tolerance) &&
 ApproximateEquals(a.MajorRadius, b.MajorRadius, tolerance) &&
 ApproximateEquals(a.MinorRadius, b.MinorRadius, tolerance);