PointUtil

StockSharp.Xaml.Charting.Utility

Provides helper methods for manipulations with points

Methods

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

Looks for the intersection point for the two lines passed in

firstLine
The first line
secondLine
The second line
intersectionPoint
If the lines intersect, holds the intersection point

Returns: The value indicating whether an intersection occurs

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

Looks for the intersection point for the two lines passed in

firstLine
The first line
secondLine
The second line
intersectionPoint
If the lines intersect, holds the intersection point

Returns: The value indicating whether an intersection occurs