nl_tokens: rectConnect ( sourceCenter : { x y } sourceSize : { width height } targetCenter : { x y } targetSize : { width height } ) Imagine drawing a line between the centers of the source rectangle and the target rectangle . This function returns the intersections of this line with the boundaries of the two rectangles in the format { source : { x y } target : { x y }} .
pl_tokens: function rectConnect ( ) { if ( arguments . length === 3 ) { return _rectConnectRectToPoint . <mask> ( undefined , arguments ) ; } return _rectConnectRectToRect . apply ( undefined , arguments ) ; }