Ejemplo n.º 1
0
        /// <summary>
        /// Check if the point is coincident with another point.
        /// </summary>
        /// <param name="obj">The object with which to compare.</param>
        /// <param name="tolerance">The tolerance. Default value: 0.0.</param>
        /// <returns>Result of comparison.</returns>
        public bool SamePoint(GmshMeshNode obj, double tolerance = 0.0)
        {
            for (int i = 0; i < 3; ++i)
            {
                if (Math.Abs(obj.GetValue(i) - this.GetValue(i)) > tolerance)
                {
                    return(false);
                }
            }

            return(true);
        }