#[repr(C)]pub struct Transform {
pub shape: Shape3d,
pub axis: [f64; 3],
pub angle: f64,
pub offset: [f64; 3],
}
Expand description
A transformed 3-dimensional shape
Limitations
Transformations are currently limited to a rotation, followed by a translation.
Fields
shape: Shape3d
The shape being transformed
axis: [f64; 3]
The axis of the rotation
angle: f64
The angle of the rotation
offset: [f64; 3]
The offset of the translation
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl Send for Transform
impl !Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more