pub struct Rigid {
pub pose: Iso3,
pub scale: f32,
}Fields§
§pose: Iso3§scale: f32Implementations§
Source§impl Rigid
impl Rigid
pub const IDENTITY: Self
pub fn apply(&self, point: [f32; 3]) -> [f32; 3]
Sourcepub fn compose(&self, inner: &Rigid) -> Rigid
pub fn compose(&self, inner: &Rigid) -> Rigid
self after inner; the inner translation is scaled by the outer scale, so two similarities compose exactly.
pub fn inverse(&self) -> Rigid
pub fn direction(&self, direction: [f32; 3]) -> [f32; 3]
pub fn ray(&self, ray: &ImageRay) -> ImageRay
Trait Implementations§
impl Copy for Rigid
impl StructuralPartialEq for Rigid
Auto Trait Implementations§
impl Freeze for Rigid
impl RefUnwindSafe for Rigid
impl Send for Rigid
impl Sync for Rigid
impl Unpin for Rigid
impl UnsafeUnpin for Rigid
impl UnwindSafe for Rigid
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