A variable triangle OAB is formed by a straight line passing through the point P(a, b) on the Cartesian plane and cutting through the x-axis and y-axis at A and B respectively.

If the angle OAB=theta, find the area of triangle OAB in terms of a, b, and theta.