First commit.

This commit is contained in:
aj
2016-05-16 22:09:19 -04:00
commit f2595d7cba
189 changed files with 26944 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
using System;
namespace OpenNest
{
public static class Trigonometry
{
/// <summary>
///
/// </summary>
/// <param name="height">Height</param>
/// <param name="hypotenuse">Hypotenuse</param>
/// <returns></returns>
public static double Base(double height, double hypotenuse)
{
return Math.Sqrt(hypotenuse * hypotenuse - height * height);
}
/// <summary>
///
/// </summary>
/// <param name="bottom">Base</param>
/// <param name="hypotenuse">Hypotenuse</param>
/// <returns></returns>
public static double Height(double bottom, double hypotenuse)
{
return Math.Sqrt(hypotenuse * hypotenuse - bottom * bottom);
}
/// <summary>
///
/// </summary>
/// <param name="height">Height</param>
/// <param name="bottom">Base</param>
/// <returns></returns>
public static double Hypotenuse(double height, double bottom)
{
return Math.Sqrt(height * height + bottom * bottom);
}
}
}