Separating axis question

I just read N’s tutorial for separating axis theorem,I got most of the things in there except the halfsize part.I can’t figure out how to find the the halfsize of a Rotated rectangle or any other shape other than rectangle using codes.Can someone show me the codes of how to do it?