pub struct Transform;Implementations§
Source§impl Transform
impl Transform
pub fn translate(structure: &mut Structure, x: f64, y: f64, z: f64)
pub fn center_geometry(structure: &mut Structure, target: Option<Point>)
pub fn center_mass(structure: &mut Structure, target: Option<Point>)
pub fn rotate_x(structure: &mut Structure, radians: f64)
pub fn rotate_y(structure: &mut Structure, radians: f64)
pub fn rotate_z(structure: &mut Structure, radians: f64)
pub fn rotate_euler( structure: &mut Structure, x_rad: f64, y_rad: f64, z_rad: f64, )
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.