Octagon (2-D)

(1) Width across flats
(2) Angle of rotation

Drawing an octagon with width across flats and angle of rotation