public bool Equals(Vector3DHomogeneous 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(Vector3DHomogeneous 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(Vector3DHomogeneous other) { // ReSharper disable CompareOfFloatsByEqualityOperator return(this.X == other.X && this.Y == other.Y && this.Z == other.Z && this.W == other.W); // ReSharper restore CompareOfFloatsByEqualityOperator }
public bool Equals(Vector3DHomogeneous other) { // ReSharper disable CompareOfFloatsByEqualityOperator return this.X == other.X && this.Y == other.Y && this.Z == other.Z && this.W == other.W; // ReSharper restore CompareOfFloatsByEqualityOperator }