static void computeBoundingBox ( QrCode qr ) { qr . bounds . get ( 0 ) . set ( qr . ppCorner . get ( 0 ) ) ; qr . bounds . get ( 1 ) . set ( qr . ppRight . get ( 1 ) ) ; Intersection2D_F64 . intersection ( qr . ppRight . get ( 1 ) , qr . ppRight . get ( 2 ) , qr . ppDown . get ( 3 ) , qr . ppDown . get ( 2 ) , qr . bounds . get ( 2 ) ) ; qr . bounds . get ( 3 ) . set ( qr . ppDown . get ( 3 ) ) ; }
3 or the 4 corners are from the position patterns . The 4th is extrapolated using the position pattern sides .