PointUtil

StockSharp.Xaml.Charting.Utility

提供带点的操作辅助方法

方法

LineIntersection2D
public static bool LineIntersection2D(Line firstLine, Line secondLine, Point intersectionPoint)
result = PointUtil.LineIntersection2D(firstLine, secondLine, intersectionPoint)

寻找两条线的相交点

firstLine
第一行,我先说
secondLine
第二行,我说
intersectionPoint
如果线相交, 则保持相交点

返回值: 显示是否发生相交的值

LineSegmentsIntersection2D
public static bool LineSegmentsIntersection2D(Line firstLine, Line secondLine, Point intersectionPoint)
result = PointUtil.LineSegmentsIntersection2D(firstLine, secondLine, intersectionPoint)

寻找两条线的相交点

firstLine
第一行,我先说
secondLine
第二行,我说
intersectionPoint
如果线相交, 则保持相交点

返回值: 显示是否发生相交的值