View Rotation Setting

When a view is rotated, is there a var or setting that can be tested that will say yes, the view is rotated?

if viewvar = rotated; then do something