#[non_exhaustive]pub struct SweptSolid {
pub profile: ProfileDescription,
pub end_profile: Option<ProfileDescription>,
pub placement_world: Transform,
pub path: SweepPath,
}Expand description
A swept-area solid: its profile, where it sits, and the path it follows.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.profile: ProfileDescriptionSweptArea, in metres and radians.
end_profile: Option<ProfileDescription>EndSweptArea of a tapered sweep; None otherwise.
placement_world: TransformThe solid’s Position composed into world coordinates, in metres:
BodyItem::item_world composed with LocalSweptSolid::position.
The profile lies in this frame’s XY plane. Rigid by construction: a
swept solid whose item_world scales or mirrors has no SweptSolid
(BodyItem::swept is None), because its profile parameters would no
longer be the authored ones; LocalSweptSolid describes it instead.
path: SweepPathThe path the profile follows.
Trait Implementations§
Source§impl Clone for SweptSolid
impl Clone for SweptSolid
Source§fn clone(&self) -> SweptSolid
fn clone(&self) -> SweptSolid
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 SweptSolid
impl Debug for SweptSolid
Source§impl PartialEq for SweptSolid
impl PartialEq for SweptSolid
impl StructuralPartialEq for SweptSolid
Auto Trait Implementations§
impl Freeze for SweptSolid
impl RefUnwindSafe for SweptSolid
impl Send for SweptSolid
impl Sync for SweptSolid
impl Unpin for SweptSolid
impl UnsafeUnpin for SweptSolid
impl UnwindSafe for SweptSolid
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