namespace OpenNest.Math
{
public static class Trigonometry
{
///
///
///
/// Height
/// Hypotenuse
///
public static double Base(double height, double hypotenuse)
{
return System.Math.Sqrt(hypotenuse * hypotenuse - height * height);
}
///
///
///
/// Base
/// Hypotenuse
///
public static double Height(double bottom, double hypotenuse)
{
return System.Math.Sqrt(hypotenuse * hypotenuse - bottom * bottom);
}
///
///
///
/// Height
/// Base
///
public static double Hypotenuse(double height, double bottom)
{
return System.Math.Sqrt(height * height + bottom * bottom);
}
}
}