src/Elements/Geometry/Vector3.cs
/// <summary>
/// Determine whether this vector's components are equal to those of v, within tolerance.
/// </summary>
/// <param name="v">The vector to compare.</param>
/// <returns>True if the difference of this vector and the supplied vector's components are all within Tolerance, otherwise false.</returns>
Determine whether this vector's components are equal to those of v, within tolerance.
Determine whether this vector ' s components are equal to those of v within tolerance .
public bool IsAlmostEqualTo(Vector3 v)
        {
            if (Math.Abs(this.X - v.X) < EPSILON &&
                Math.Abs(this.Y - v.Y) < EPSILON &&
                Math.Abs(this.Z - v.Z) < EPSILON)
            {
                return true;
            }
            return false;
        }
public bool IsAlmostEqualTo ( Vector3 v ) { if ( Math . Abs ( this . X - v . X ) < EPSILON && Math . Abs ( this . Y - v . Y ) < EPSILON && Math . Abs ( this . Z - v . Z ) < EPSILON ) { return true ; } return false ; }
Determine whether this vector's components are equal to those of v, within tolerance.
Determine whether this vector ' s components are equal to those of v within tolerance .
True if the difference of this vector and the supplied vector's components are all within Tolerance, otherwise false.
True if the difference of this vector and the supplied vector ' s components are all within Tolerance otherwise false .
v
Vector3
The vector to compare.
The vector to compare .