int function ( Point arg0 ) { Line [ ] loc0 = this . myLines ( ) ; int loc1 = 0 ; while ( loc1 < 4 ) { if ( arg0 . isInLine ( loc0 [ loc1 ] ) ) { break ; } loc1 ++ ; } return loc1 ; }
returns a numeric representation of the edge that been hit . the numeric logic follows mylines logic concode_field_sep Point upperLeft concode_elem_sep double width concode_elem_sep double height concode_field_sep java.util.List intersectionPoints concode_elem_sep Line[] myLines concode_elem_sep double getHeight concode_elem_sep Point getUpperLeft concode_elem_sep double getWidth concode_elem_sep void drawOn