isInRectangle

open fun isInRectangle(    origin: Vector2D<*>,     width: Double,     height: Double): Boolean

Checks if this segment is inside a rectangular region described by an origin, width and height (must be positive).