pub struct MoveBodyArgs {
pub bodies: Vec<BodyRef>,
pub translation: [f64; 3],
pub axis: Option<TurnAxis>,
pub angle: f64,
pub copy: bool,
pub combine: Combine,
}Fields§
§bodies: Vec<BodyRef>The bodies to move: solids, or a face of each sheet.
translation: [f64; 3]The shift, along the world’s x, y and z.
axis: Option<TurnAxis>What to turn about, before the shift: a line, or a round entity’s axis; none, to shift only.
angle: f64How far to turn about axis, in degrees.
copy: boolMove a copy, keeping the bodies where they are.
combine: CombineKeep what is moved as it is, or combine it with a solid.
Trait Implementations§
Source§impl Clone for MoveBodyArgs
impl Clone for MoveBodyArgs
Source§fn clone(&self) -> MoveBodyArgs
fn clone(&self) -> MoveBodyArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MoveBodyArgs
impl Debug for MoveBodyArgs
Source§impl<'de> Deserialize<'de> for MoveBodyArgs
impl<'de> Deserialize<'de> for MoveBodyArgs
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
Source§impl PartialEq for MoveBodyArgs
impl PartialEq for MoveBodyArgs
Source§impl Serialize for MoveBodyArgs
impl Serialize for MoveBodyArgs
Source§impl StepArgs for MoveBodyArgs
impl StepArgs for MoveBodyArgs
Source§const KIND: &'static str = <MoveBody as ::geop_core_editor::part_operation::PartOperation>::KIND
const KIND: &'static str = <MoveBody as ::geop_core_editor::part_operation::PartOperation>::KIND
The kind of the operation they are for (see
Operation::KIND).impl StructuralPartialEq for MoveBodyArgs
Auto Trait Implementations§
impl Freeze for MoveBodyArgs
impl RefUnwindSafe for MoveBodyArgs
impl Send for MoveBodyArgs
impl Sync for MoveBodyArgs
impl Unpin for MoveBodyArgs
impl UnsafeUnpin for MoveBodyArgs
impl UnwindSafe for MoveBodyArgs
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