src/main/java/de/hfu/in/machinelearning/crawling_robot_2d_sim/models/ShapeRenderer.java
public static final void render(Graphics2D g, Ellipse ellipse, double scale, Color color) {
		// get the local rotation and translation
		double rotation = ellipse.getRotation();
		Vector2 center = ellipse.getCenter();
		
		// save the old transform
		AffineTransform oTransform = g.getTransform();
		g.translate(center.x * scale, center.y * scale);
		g.rotate(rotation);
		
		double width = ellipse.getWidth();
		double height = ellipse.getHeight();
		Ellipse2D.Double c = new Ellipse2D.Double(
			(-width * 0.5) * scale,
			(-height * 0.5) * scale,
			width * scale,
			height * scale);
		
		// fill the shape
		g.setColor(color);
		g.fill(c);
		// draw the outline
		g.setColor(getOutlineColor(color));
		g.draw(c);
		
		// re-instate the old transform
		g.setTransform(oTransform);
	}
/**
	 * Renders the given {@link Ellipse} to the given graphics context using the given scale and color.
	 * @param g the graphics context
	 * @param ellipse the ellipse to render
	 * @param scale the scale to render the shape (pixels per dyn4j unit (typically meter))
	 * @param color the color
	 */
Renders the given  Ellipse to the given graphics context using the given scale and color.
@param g the graphics context
@param ellipse the ellipse to render
@param scale the scale to render the shape (pixels per dyn4j unit (typically meter))
@param color the color
Renders the given Ellipse to the given graphics context using the given scale and color . @param g the graphics context @param ellipse the ellipse to render @param scale the scale to render the shape ( pixels per dyn4j unit ( typically meter )) @param color the color
public static final void render(Graphics2D g, Ellipse ellipse, double scale, Color color) {
		double rotation = ellipse.getRotation();
		Vector2 center = ellipse.getCenter();
		AffineTransform oTransform = g.getTransform();
		g.translate(center.x * scale, center.y * scale);
		g.rotate(rotation);
		double width = ellipse.getWidth();
		double height = ellipse.getHeight();
		Ellipse2D.Double c = new Ellipse2D.Double(
			(-width * 0.5) * scale,
			(-height * 0.5) * scale,
			width * scale,
			height * scale);
		g.setColor(color);
		g.fill(c);
		g.setColor(getOutlineColor(color));
		g.draw(c);
		g.setTransform(oTransform);
	}
public static final void render ( Graphics2D g , Ellipse ellipse , double scale , Color color ) { double rotation = ellipse . getRotation ( ) ; Vector2 center = ellipse . getCenter ( ) ; AffineTransform oTransform = g . getTransform ( ) ; g . translate ( center . x * scale , center . y * scale ) ; g . rotate ( rotation ) ; double width = ellipse . getWidth ( ) ; double height = ellipse . getHeight ( ) ; Ellipse2D . Double c = new Ellipse2D . Double ( ( - width * 0.5 ) * scale , ( - height * 0.5 ) * scale , width * scale , height * scale ) ; g . setColor ( color ) ; g . fill ( c ) ; g . setColor ( getOutlineColor ( color ) ) ; g . draw ( c ) ; g . setTransform ( oTransform ) ; }
Renders the given {@link Ellipse} to the given graphics context using the given scale and color.
Renders the given { @link Ellipse } to the given graphics context using the given scale and color .
// get the local rotation and translation // save the old transform // fill the shape // draw the outline // re-instate the old transform