* @param dv a Vector of rectangle sizes
*/
public static void plotRectangle(Graphics2D g2, Vector v, Vector dv) {
double[] flip = { 1, -1 };
Vector v2 = v.clone().assign(new DenseVector(flip), new TimesFunction());
v2 = v2.minus(dv.divide(2));
int h = size / 2;
double x = v2.get(0) + h;
double y = v2.get(1) + h;
g2.draw(new Rectangle2D.Double(x * ds, y * ds, dv.get(0) * ds, dv.get(1)
* ds));