Optimized these functions for speed as well as preserving fidality. In the future, use Roblox's orthogonal angle format.