Exemple #1
0
 private bool GetT(ISupportPoint partEdge, out float t)
 {
     if (partEdge != null)
     {
         return(partEdge.GetT(Line, out t));
     }
     else
     {
         t = -1;
         return(false);
     }
 }
 public override bool Equals(ISupportPoint other) => other is EnterSupportPoint otherEnterPoint && otherEnterPoint.Point == Point;
 public abstract bool Equals(ISupportPoint other);
 public override bool Equals(ISupportPoint other) => other is IntersectSupportPoint otherIntersect && otherIntersect.LinePair == LinePair;
Exemple #5
0
 private bool Match(MarkupLine intersectLine, ISupportPoint supportPoint) => supportPoint is IntersectSupportPoint lineRuleEdge && lineRuleEdge.LinePair.ContainLine(intersectLine);
 public override bool Equals(ISupportPoint other) => other is CrosswalkBorderEdge otherBorder && otherBorder.Border == Border;
Exemple #7
0
 public MarkupLinePart(MarkupLine line, ISupportPoint from = null, ISupportPoint to = null)
 {
     Line = line;
     From = new PropertyClassValue <ISupportPoint>(RuleChanged, from);
     To   = new PropertyClassValue <ISupportPoint>(RuleChanged, to);
 }
Exemple #8
0
 public override bool Equals(ISupportPoint other) => other is EnterSupportPoint otherEnterPoint && Equals(otherEnterPoint);
Exemple #9
0
 bool IEquatable <ISupportPoint> .Equals(ISupportPoint other) => true;
Exemple #10
0
 bool IEquatable <ISupportPoint> .Equals(ISupportPoint other) => other is IntersectSupportPoint otherIntersect && Equals(otherIntersect);
Exemple #11
0
 bool IEquatable <ISupportPoint> .Equals(ISupportPoint other) => other is EnterSupportPoint otherEnterPoint && Equals(otherEnterPoint);