int rav_y = (dx * width) / mag;
Polygon temp_polygon = new Polygon();
temp_polygon.addPoint(c.scaleX(x1 + rav_x), c.scaleY(y1 - rav_y));
temp_polygon.addPoint(c.scaleX(x1 - rav_x), c.scaleY(y1 + rav_y));
temp_polygon.addPoint(c.scaleX(x2 - rav_x), c.scaleY(y2 + rav_y));
temp_polygon.addPoint(c.scaleX(x2 + rav_x), c.scaleY(y2 - rav_y));
g.fillPolygon(temp_polygon);
}
public static void renderSquare(Graphics g, FEPoint from, FEPoint to,