private static void GetSinCos(double angleDeg, out double sin, out double cos) { var angle = Pi*angleDeg/180.0; sin = Math.Sin(angle); cos = Math.Cos(angle); }