Update Rectangle.java

Formatted, not using varargs to avoid array allocation, assigning vecs[i] to a local variable