Move 38 files from root directory into organized subfolders: - Enums/ (7 files): StatusType, ApplicationType, DrawingType, etc. - Geometry/ (5 files): Vector, Box, Size, Spacing, Node - Models/ (15 files): Nest, Plate, Part, Program, Report, etc. - Utilities/ (7 files): MathHelper, Tolerance, ZipHelper, etc. - Extensions/ (2 files): PartListExtensions, PlateListExtensions - Interfaces/ (1 file): IMovable Update namespaces to follow folder hierarchy (e.g., PepLib.Models). Add GlobalUsings.cs for internal backward compatibility. Update Codes/ and IO/ files with new using statements. Update PepApi.Core consumers to reference new namespaces. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
44 lines
875 B
C#
44 lines
875 B
C#
using PepLib.Geometry;
|
|
|
|
namespace PepLib.Codes
|
|
{
|
|
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;
|
|
Type = EntityType.Cut;
|
|
}
|
|
|
|
public EntityType Type { get; set; }
|
|
|
|
public override CodeType CodeType()
|
|
{
|
|
return Codes.CodeType.LinearMove;
|
|
}
|
|
|
|
public override ICode Clone()
|
|
{
|
|
return new LinearMove(EndPoint)
|
|
{
|
|
Type = Type
|
|
};
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format("G01 X{0} Y{1}", EndPoint.X, EndPoint.Y);
|
|
}
|
|
}
|
|
}
|