Equation for Vector - From Center Vertex

Given an ellipse with semi major axis 'a', and semi minor axis 'b'. The calculation below provides the value of the vector magnitude 'R' for any angle θ.


Figure 1
Figure 2