public bool Equals(Point3DHomogeneous other, double tolerance) { if (tolerance < 0) { throw new ArgumentException("epsilon < 0"); } return(Math.Abs(other.X - this.X) < tolerance && Math.Abs(other.Y - this.Y) < tolerance && Math.Abs(other.Z - this.Z) < tolerance && Math.Abs(other.W - this.W) < tolerance); }
public bool Equals(Point3DHomogeneous other) { return(this.X == other.X && this.Y == other.Y && this.Z == other.Z && this.W == other.W); }