private static void renderCollision ( Graphic g , CollisionFormula formula , int th , int x , int y ) { final CollisionFunction function = formula . getFunction ( ) ; final CollisionRange range = formula . getRange ( ) ; switch ( range . getOutput ( ) ) { case X : renderX ( g , function , range , th , y ) ; break ; case Y : renderY ( g , function , range , th , x ) ; break ; default : throw new LionEngineException ( range . getOutput ( ) ) ; } }
Render collision from current vector .