Beispiel #1
0
        /// <summary>
        /// Determines whether the PointOnPath specified is equal to the current PointOnPath.
        /// </summary>
        /// <param name="other">The PointOnPath instance to compare with the current PointOnPath.</param>
        /// <returns>true if the specified object is equal to the current PointOnPath, false otherwise.</returns>
        public bool Equals(PointOnPath other)
        {
            if ((segment == null) != (other.segment == null))
            {
                return(false);
            }

            if (segment != null && !segment.Equals(other.segment))
            {
                return(false);
            }

            if (!pt.ApproxEquals(other.pt, 0.001))
            {
                return(false);
            }

            return(true);
        }