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
Если линии пересекаются, удерживает точку пересечения

Возвращает: Значение, указывающее, происходит ли пересечение