\[\gamma=\frac{1}{\sqrt{1-\frac{v^2}{c^2}}}=\frac{ct}{t\sqrt{c^2-v^2}}=\frac{1}{sin\alpha } \]