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); }
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); }
public bool Equals(SliderPath other) => ControlPoints.SequenceEqual(other.ControlPoints) && ExpectedDistance == other.ExpectedDistance && Type == other.Type;