Example #1
0
        public bool Equals(SliderPath other)
        {
            if (ControlPoints == null && other.ControlPoints != null)
            {
                return(false);
            }
            if (other.ControlPoints == null && ControlPoints != null)
            {
                return(false);
            }

            return(ControlPoints.SequenceEqual(other.ControlPoints) && ExpectedDistance.Equals(other.ExpectedDistance) && Type == other.Type);
        }
Example #2
0
        public bool Equals(BSpline <T> other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            return(ControlPoints.SequenceEqual(other.ControlPoints) &&
                   KnotVectorU.SequenceEqual(other.KnotVectorU)

                   && Order == other.Order);
        }
Example #3
0
 public bool Equals(SliderPath other) => ControlPoints.SequenceEqual(other.ControlPoints) && ExpectedDistance == other.ExpectedDistance && Type == other.Type;