protected void calculateOffset(T entity,final int swidth,final int sheight){
  final Rectangle2D area=entity.getArea();
  calculateOffset(swidth,sheight,(int)(IGameScreen.SIZE_UNIT_PIXELS * area.getWidth()),(int)(IGameScreen.SIZE_UNIT_PIXELS * area.getHeight()));
}

protected void calculateOffset ( T entity , final int swidth , final int sheight ) { final Rectangle2D area = entity . getArea ( ) ; calculateOffset ( swidth , sheight , ( int ) ( IGameScreen . SIZE_UNIT_PIXELS * area . getWidth ( ) ) , ( int ) ( IGameScreen . SIZE_UNIT_PIXELS * area . getHeight ( ) ) ) ; }
calculate sprite image offset for the entity .
