intersectsLine

fun intersectsLine(x1: Double, y1: Double, x2: Double, y2: Double): Boolean

Tests if the specified line segment intersects the interior of this Rectangle. Ported from java.

Return

true if the specified line segment intersects the interior of this Rectangle; false otherwise.

Parameters

x1

the X coordinate of the start point of the specified line segment

y1

the Y coordinate of the start point of the specified line segment

x2

the X coordinate of the end point of the specified line segment

y2

the Y coordinate of the end point of the specified line segment