NShape Reference
Shape.IntersectOutlineWithLineSegment Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape > Shape Class >

NShape Reference
Shape.IntersectOutlineWithLineSegment Method

Previous pageReturn to chapter overviewNext page

Calculates the intersection points of the shape's outline with the given line segment.

Syntax

public abstract IEnumerable<Point> IntersectOutlineWithLineSegment(int x1, int y1, int x2, int y2)

Description

Calculates all intersection points of the shape's outline with the given line segment. Does not return any point if there is no intersection.

Parameters

Name

Description

x1, y1, x2, y2

Define the start and the end point of the line segment.

Return Value

Intersection points of the shape's outline with the given line segment.

Exceptions

Name

Description

ArgumentException

The coordinates do not define a valid line segment.