A body is projected up the smooth incline plane having angle of inclination $\theta$ with the horizontal as shown in the figure. Find the $v > 0$ distance covered before stopping.
(A) $\frac { \mathrm { u } ^ { 2 } } { 2 \mathrm { gsin } \theta }$
(B) $\frac { u ^ { 2 } } { 2 g \tan \theta }$
(C) $\frac { \mathrm { u } ^ { 2 } } { 2 \mathrm {~g} }$
(D) $\frac { u ^ { 2 } } { 2 g \cos \theta }$