Google maps V3 API has a getBounds method on the map that returns you the Northeast and Southwest corners of the viewport. In theory, I could calculate the Northwest and Southeast corners by using the latitude and longitude of the opposite points, i.e.
NE = (lat= 37.5, lng= -97.5)
SW = (lat= 37.0, lng= -96)
... therefore ...
NW = (lat= 37.5, lng= -96)
SE = (lat= 37.0, lng= -97.5)
(there was even a post about this 5 years ago.)
But all of the answers I've found anywhere online assume the map is pointing due North, meaning "Northeast" really means "top right".
But what happens if the map is rotated? Do I have to use trig based on the orientation of the map to figure out the other two corners? Or does Google give me actual Northeast and Southwest coordinates of an area that encompasses what's in my viewport, even if that means the resulting rectangle has parts that fall outside of the bounds of a rotated map?