private static int getOffsetX ( Collision collision , Mirror mirror ) { if ( mirror == Mirror . HORIZONTAL ) { return - collision . getOffsetX ( ) ; } return collision . getOffsetX ( ) ; }
Get the horizontal offset .