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