Search
Utilities.pointInSegment Method
See Also
 






Checks if the specified Point2D is inside the segment defined by the specified two Point2D instances.

Namespace: com.mindfusion.charting
File: com.mindfusion.charting

 Syntax

Java  Copy Code

public static boolean pointInSegment (
    Point2D pt,
    Point2D sgm1,
    Point2D sgm2
)

 Parameters

pt

The Point2D to check.

sgm1

The Point2D that marks the begin of the segment.

sgm2

The Point2D that marks the end of the segment.

 Return Value

true if the point is inside the segment; otherwise false.

 See Also