Class ActMcXyzStep
Action representing a machine coordinate XYZ step movement. This class handles linear positioning in machine coordinates.
public class ActMcXyzStep : IActDuration, IActMachineStep, IAct
- Inheritance
-
ActMcXyzStep
- Implements
- Inherited Members
- Extension Methods
Remarks
This class is used for:
- Direct machine coordinate movements
- Linear positioning operations
- Point-to-point movements
- Simple trajectory segments
The movement is defined by:
- Target XYZ position in machine coordinates
- Movement duration
- Linear interpolation between points
Constructors
ActMcXyzStep()
Initializes a new instance of the ActMcXyzStep class. Creates an empty step with default values.
public ActMcXyzStep()
ActMcXyzStep(Vec3d, TimeSpan)
Initializes a new instance of the ActMcXyzStep class with the specified machine coordinate and duration.
public ActMcXyzStep(Vec3d mcXyz, TimeSpan actDuration)
Parameters
mcXyz
Vec3dThe machine coordinate XYZ position. This vector:
- Specifies the target position
- Uses machine coordinate system
- Values are in machine units
actDuration
TimeSpanThe duration of the step action. This represents:
- Time to complete the movement
- Should account for machine capabilities
- Must be non-negative
Properties
ActDuration
Gets or sets the duration of the action.
public TimeSpan ActDuration { get; set; }
Property Value
Remarks
The duration represents:
- The time required to complete the action
- Should be positive and finite
- Zero duration indicates an instantaneous action
- Used for scheduling and timing calculations
McXyz
Gets or sets the machine coordinate XYZ position.
public Vec3d McXyz { get; set; }
Property Value
Remarks
The position vector represents:
- X: Machine coordinate X-axis position
- Y: Machine coordinate Y-axis position
- Z: Machine coordinate Z-axis position
All values are in the machine's native units (typically millimeters).
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.