Repo-wide sweep with the pinned CSharpier 1.3.0 tool. Whitespace and line-wrapping only; OpenNest.Engine.Tests (109) and OpenNest.IO.Tests pass after reformat, full solution builds 0 errors. Added .csharpierignore so csproj/config XML keeps its existing layout (CSharpier's XML wrapping churns attributes with zero benefit). Formatting is now enforceable: dotnet csharpier check . passes.
36 lines
697 B
C#
36 lines
697 B
C#
namespace OpenNest.CNC
|
|
{
|
|
public class Feedrate : ICode
|
|
{
|
|
public const int UseDefault = -1;
|
|
|
|
public const int UseMax = -2;
|
|
|
|
public Feedrate() { }
|
|
|
|
public Feedrate(double value)
|
|
{
|
|
Value = value;
|
|
}
|
|
|
|
public double Value { get; set; }
|
|
|
|
public string VariableRef { get; set; }
|
|
|
|
public CodeType Type
|
|
{
|
|
get { return CodeType.SetFeedrate; }
|
|
}
|
|
|
|
public ICode Clone()
|
|
{
|
|
return new Feedrate(Value) { VariableRef = VariableRef };
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format("F{0}", Value);
|
|
}
|
|
}
|
|
}
|