code: 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());
          }
      }
docs: Render collision from current vector.
  
  @param g The graphic buffer.
  @param formula The collision formula.
  @param th The tile height.
  @param x The current horizontal location.
  @param y The current vertical location.