예제 #1
0
 /// <summary>
 /// Checks whether the element equals to another elements
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 protected override bool EqualsInternal(ReticlePathElement other)
 {
     if (other is ReticlePathElementMoveTo m)
     {
         return(Position.Equals(m.Position));
     }
     return(false);
 }
 /// <summary>
 /// Checks whether the element equals to another elements
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 protected override bool EqualsInternal(ReticlePathElement other)
 {
     if (other is ReticlePathElementArc arc)
     {
         return(Equals(Position, arc.Position) &&
                Equals(Radius, arc.Radius) &&
                Equals(MajorArc, arc.MajorArc) &&
                Equals(ClockwiseDirection, arc.ClockwiseDirection));
     }
     return(false);
 }