static Point2d intersection ( final Tuple2d p1 , final Tuple2d d1 , final Tuple2d p2 , final Tuple2d d2 ) { final Vector2d p1End = sum ( p1 , d1 ) ; final Vector2d p2End = sum ( p2 , d2 ) ; return intersection ( p1 . x , p1 . y , p1End . x , p1End . y , p2 . x , p2 . y , p2End . x , p2End . y ) ; }
Calculate the intersection of two vectors given their starting positions .