find point rectangl line intersect find intersect point border rectangl line drawn point outsid rectangl insid rectangl insid rectangl problem occur return param rectangl intersect param point outsid rectangl param point insid rectangl intersect line rectangl point rect line intersect rectangl point point line line line width intersect line intersect line width width height intersect line intersect line height width height intersect line intersect line width intersect line intersect inner point defin log lp log granular type statement lp log local log warn rectangl intersect us inner point endif 