#[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.
The profile lies in this frame’s XY plane. Rigid by construction: a mapping that scales or mirrors a swept solid is refused, because its profile parameters would no longer be the authored ones.
path: SweepPathThe path the profile follows.
Trait Implementations§
Source§impl Clone for SweptSolid
impl Clone for SweptSolid
Source§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