using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Zelva { class GonioFce { /// /// Převádí stupně na radiány /// /// Stupně /// Odpovídající úhel v radiánech public static Double deg2rad(Double degrees) { return degrees * Math.PI / 180; } public static Double sin(Double angle) { return Math.Sin(deg2rad(angle)); } public static Double cos(Double angle) { return Math.Cos(deg2rad(angle)); } public static Double tg(Double angle) { return Math.Tan(deg2rad(angle)); } public static Double cotg(Double angle) { return 1/Math.Tan(deg2rad(angle)); } } }