mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-23 11:18:27 +00:00
Made publicly visible constants into properties.
This commit is contained in:
parent
7a563e92f0
commit
fbfe44f96a
@ -8,8 +8,8 @@ namespace OSCADSharp
|
|||||||
{
|
{
|
||||||
internal class SphereScriptBuilder
|
internal class SphereScriptBuilder
|
||||||
{
|
{
|
||||||
private IBindings bindings;
|
private readonly IBindings bindings;
|
||||||
private Sphere sphere;
|
private readonly Sphere sphere;
|
||||||
|
|
||||||
internal SphereScriptBuilder(IBindings bindings, Sphere sphere)
|
internal SphereScriptBuilder(IBindings bindings, Sphere sphere)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -14,27 +14,27 @@ namespace OSCADSharp
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// One imperial inch
|
/// One imperial inch
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const double One = 25.4;
|
public static double One { get; private set; } = 25.4;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Half of an imperial inch
|
/// Half of an imperial inch
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const double Half = One / 2;
|
public static double Half { get; private set; } = One / 2;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Quarter of an imperial inch
|
/// Quarter of an imperial inch
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const double Quarter = Half / 2;
|
public static double Quarter { get; private set; } = Half / 2;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Eigth of an imperial inch
|
/// Eigth of an imperial inch
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const double Eigth = Quarter / 2;
|
public static double Eigth { get; private set; } = Quarter / 2;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sixteenth of an imperial inch
|
/// Sixteenth of an imperial inch
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const double Sixteenth = Eigth / 2;
|
public static double Sixteenth { get; private set; } = Eigth / 2;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Converts inches to millimeters
|
/// Converts inches to millimeters
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user