public MarkupLine GetCommonLine(IFillerVertex other)
 {
     return(other switch
     {
         EnterSupportPoint otherE => First.ContainsPoint(otherE.Point) ? First : Second,
         IntersectSupportPoint otherI => LinePair.ContainLine(otherI.LinePair.First) ? otherI.LinePair.First : otherI.LinePair.Second,
         _ => null,
     });
Exemple #2
0
 public override bool Equals(EnterSupportPoint other) => base.Equals(other) && (other is not EnterFillerVertexBase otherVertex || otherVertex.Alignment == Alignment);