mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-11 21:48:34 +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
|
||||
{
|
||||
private IBindings bindings;
|
||||
private Sphere sphere;
|
||||
private readonly IBindings bindings;
|
||||
private readonly Sphere sphere;
|
||||
|
||||
internal SphereScriptBuilder(IBindings bindings, Sphere sphere)
|
||||
{
|
||||
|
||||
@ -14,27 +14,27 @@ namespace OSCADSharp
|
||||
/// <summary>
|
||||
/// One imperial inch
|
||||
/// </summary>
|
||||
public const double One = 25.4;
|
||||
public static double One { get; private set; } = 25.4;
|
||||
|
||||
/// <summary>
|
||||
/// Half of an imperial inch
|
||||
/// </summary>
|
||||
public const double Half = One / 2;
|
||||
public static double Half { get; private set; } = One / 2;
|
||||
|
||||
/// <summary>
|
||||
/// Quarter of an imperial inch
|
||||
/// </summary>
|
||||
public const double Quarter = Half / 2;
|
||||
public static double Quarter { get; private set; } = Half / 2;
|
||||
|
||||
/// <summary>
|
||||
/// Eigth of an imperial inch
|
||||
/// </summary>
|
||||
public const double Eigth = Quarter / 2;
|
||||
public static double Eigth { get; private set; } = Quarter / 2;
|
||||
|
||||
/// <summary>
|
||||
/// Sixteenth of an imperial inch
|
||||
/// </summary>
|
||||
public const double Sixteenth = Eigth / 2;
|
||||
public static double Sixteenth { get; private set; } = Eigth / 2;
|
||||
|
||||
/// <summary>
|
||||
/// Converts inches to millimeters
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user