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, });
public MarkupLine GetCommonLine(IFillerVertex other) { switch (other) { case EnterSupportPoint otherE: return First.ContainsPoint(otherE.Point) ? First : Second; case IntersectSupportPoint otherI: return LinePair.ContainLine(otherI.LinePair.First) ? otherI.LinePair.First : otherI.LinePair.Second; default: return null; } }