Move all projects from Source/ to repository root for simpler navigation. - Remove External/ dependency DLLs (will use NuGet packages) - Remove Installer/ NSIS script - Replace PartCollection/PlateCollection with ObservableList - Add packages.config for NuGet dependencies 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
48 lines
1.0 KiB
C#
48 lines
1.0 KiB
C#
namespace OpenNest.CNC
|
|
{
|
|
public class LinearMove : Motion
|
|
{
|
|
public LinearMove()
|
|
: this(new Vector())
|
|
{
|
|
}
|
|
|
|
public LinearMove(double x, double y)
|
|
: this(new Vector(x, y))
|
|
{
|
|
}
|
|
|
|
public LinearMove(Vector endPoint)
|
|
{
|
|
EndPoint = endPoint;
|
|
Layer = LayerType.Cut;
|
|
}
|
|
|
|
public LayerType Layer { get; set; }
|
|
|
|
public override CodeType Type
|
|
{
|
|
get { return CodeType.LinearMove; }
|
|
}
|
|
|
|
public override ICode Clone()
|
|
{
|
|
return new LinearMove(EndPoint)
|
|
{
|
|
Layer = Layer
|
|
};
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return ToString(DefaultDecimalPlaces);
|
|
}
|
|
|
|
public override string ToString(int decimalPlaces)
|
|
{
|
|
var dp = "N" + decimalPlaces;
|
|
return string.Format("G01 X{0} Y{1}", EndPoint.X.ToString(dp), EndPoint.Y.ToString(dp));
|
|
}
|
|
}
|
|
}
|