send the closest intersection point to the line . sort all the intersection points in array and send the closest intersection point . concode_field_sep Point start concode_elem_sep Point end concode_elem_sep double slope concode_field_sep boolean isIntersecting concode_elem_sep double getSlope concode_elem_sep Point middle concode_elem_sep Point intersectionWith concode_elem_sep boolean equals concode_elem_sep double length concode_elem_sep Point start concode_elem_sep Point end concode_elem_sep void drawOn concode_elem_sep double slope
Point function ( Rectangle arg0 ) { List < Point > loc0 = arg0 . intersectionPoints ( this ) ; if ( loc0 . isEmpty ( ) ) { return null ; } Collections . sort ( loc0 , new PointByDistanceComparator ( this . start ( ) ) ) ; return ( Point ) loc0 . get ( 0 ) ; }