pub struct Motion {
pub kind: MotionKind,
pub feed: Feed,
pub tool_axis: Option<Point3>,
pub path_id: Option<u32>,
}Expand description
One motion with its feed and optional multi-axis tool orientation.
Fields§
§kind: MotionKind§feed: Feed§tool_axis: Option<Point3>Tool axis direction at the end of the motion (None: machine +Z).
path_id: Option<u32>Id of the source path/pass within the operation, for preview grouping and slider snap points.
Implementations§
Source§impl Motion
impl Motion
pub fn new(kind: MotionKind, feed: Feed) -> Self
pub fn rapid(to: Point3) -> Self
pub fn plunge(to: Point3, feed: f64) -> Self
pub fn cut(to: Point3, feed: f64) -> Self
pub fn retract(to: Point3, feed: Feed) -> Self
pub fn link(to: Point3, feed: f64) -> Self
pub fn with_path(self, path_id: u32) -> Self
pub fn end(&self) -> Option<Point3>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Motion
impl<'de> Deserialize<'de> for Motion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Motion
Auto Trait Implementations§
impl Forget for Motion
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnsafeUnpin for Motion
impl UnwindSafe for Motion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more