Added 'sizes' class with some constants and an inches to milimeters function

This commit is contained in:
Michael L Smith 2016-02-10 21:53:07 -08:00
parent 152a63ee77
commit 0d7eaf89e0
2 changed files with 23 additions and 0 deletions

View File

@ -40,6 +40,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Sizes.cs" />
<Compile Include="Transforms\LinearExtrudedObject.cs" />
<Compile Include="Scripting\BlockFormatter.cs" />
<Compile Include="Scripting\BlockStatementObject.cs" />

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OSCADSharp
{
public class Sizes
{
public const double OneInch = 25.4;
public const double HalfInch = OneInch / 2;
public const double QuarterInch = HalfInch / 2;
public const double EigthInch = QuarterInch / 2;
public const double SixteenthInch = EigthInch / 2;
public double InchesToMilimeters(double inches)
{
return inches * 0.03937008;
}
}
}