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;
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;
public MarkupLinePart(MarkupLine line, ISupportPoint from = null, ISupportPoint to = null) { Line = line; From = new PropertyClassValue <ISupportPoint>(RuleChanged, from); To = new PropertyClassValue <ISupportPoint>(RuleChanged, to); }
public override bool Equals(ISupportPoint other) => other is EnterSupportPoint otherEnterPoint && Equals(otherEnterPoint);
bool IEquatable <ISupportPoint> .Equals(ISupportPoint other) => true;
bool IEquatable <ISupportPoint> .Equals(ISupportPoint other) => other is IntersectSupportPoint otherIntersect && Equals(otherIntersect);
bool IEquatable <ISupportPoint> .Equals(ISupportPoint other) => other is EnterSupportPoint otherEnterPoint && Equals(otherEnterPoint);