correctly compute oriented rectangle corners
this is probably a better name for these
how did this even compile before?