I would like to rotate my rectangle about the origin, say 45 degrees around z, so that this. . .
___________________
| |
| |
| |
| X |
| |
| |
___________________
becomes this . . . (use your imagination)
^
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ \
< x >
\ /
\ /
\ /
\ /
\ /
\ /
\ /
\ /
v
and then rotate this about an arbitrary new origin . . .
^
/ \
/ \
/ \
/ \
/ \
/ \
/ \
/ \
< >
\ /
\ /
\ /
\ X /
\ /
\ /
\ /
\ /
v
How might I do this?