Search
Utilities.SegmentRectOverlapLen Method
See Also
 





Calculates the length of a line segment overlapped by specified rectangle.

Namespace: MindFusion
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static double SegmentRectOverlapLen (
    Point point1,
    Point point2,
    Rect rect
)

Visual Basic  Copy Code

Public Shared Function SegmentRectOverlapLen( _
    point1 As Point, _
    point2 As Point, _
    rect As Rect _
) As Double

 Parameters

point1

Start point of the segment.

point2

End point of the segment.

rect

A Rect instance.

 Return Value

 See Also