This function can be used to derive the broadening effect, or line spread function (LSF),
due to stellar rotation on a synthetic stellar spectrum. It assumes constant limb darkening across the disk. To actually compute the broadening. the spectrum should be convolved with the rotational LSF using a function like kernapply or filter. The number of points in the output lsf will be always be odd (the kernel is
symmetric) and equal to either ceil(2*Vsini/deltav) or ceil(2*Vsini/deltav) +1
(whichever number is odd).
The limb darkening coefficient epsilon = 0.6 is typical for photospheric lines. The specific intensity I at any angle theta from the specific intensity Icen at the center of the disk is given by
I = Icen*(1-epsilon*(1-cos(theta))
.The algorithm is adapted from rotin3.f in the SYNSPEC software of Hubeny & Lanz
http://nova.astro.umd.edu/. Also see Eq. 17.12 in Gray (1992).