Example #1
0
 /// <summary>
 ///   Determines whether the specified <see cref="Point3"/> is equal to this instance.
 /// </summary>
 ///
 /// <param name="other">The <see cref="Point3"/> to compare with this instance.</param>
 ///
 /// <returns>
 ///   <c>true</c> if the specified <see cref="Plane"/> is equal to this instance; otherwise, <c>false</c>.
 /// </returns>
 ///
 public bool Equals(Point3 other)
 {
     return(coordinates == other.coordinates);
 }
Example #2
0
 /// <summary>
 ///   Determines whether the specified <see cref="Point3"/> is equal to this instance.
 /// </summary>
 ///
 /// <param name="other">The <see cref="Point3"/> to compare with this instance.</param>
 /// <param name="tolerance">The acceptance tolerance threshold to consider the instances equal.</param>
 ///
 /// <returns>
 ///   <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.
 /// </returns>
 ///
 public bool Equals(Point3 other, double tolerance)
 {
     return((Math.Abs(coordinates.X - other.coordinates.X) < tolerance) &&
            (Math.Abs(coordinates.Y - other.coordinates.Y) < tolerance) &&
            (Math.Abs(coordinates.Z - other.coordinates.Z) < tolerance));
 }