pub struct RigidTransform3 {
pub rotation: Mat3<f64>,
pub translation: Vec3<f64>,
}Expand description
Rigid transform represented as a rotation matrix and translation.
Fields§
§rotation: Mat3<f64>Source-to-destination rotation.
translation: Vec3<f64>Source-to-destination translation.
Implementations§
Source§impl RigidTransform3
impl RigidTransform3
Sourcepub fn transform_point(self, point: Vec3<f64>) -> Vec3<f64>
pub fn transform_point(self, point: Vec3<f64>) -> Vec3<f64>
Applies the transform to a point.
Trait Implementations§
Source§impl Clone for RigidTransform3
impl Clone for RigidTransform3
Source§fn clone(&self) -> RigidTransform3
fn clone(&self) -> RigidTransform3
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 RigidTransform3
impl Debug for RigidTransform3
Source§impl PartialEq for RigidTransform3
impl PartialEq for RigidTransform3
Source§fn eq(&self, other: &RigidTransform3) -> bool
fn eq(&self, other: &RigidTransform3) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RigidTransform3
impl StructuralPartialEq for RigidTransform3
Auto Trait Implementations§
impl Freeze for RigidTransform3
impl RefUnwindSafe for RigidTransform3
impl Send for RigidTransform3
impl Sync for RigidTransform3
impl Unpin for RigidTransform3
impl UnsafeUnpin for RigidTransform3
impl UnwindSafe for RigidTransform3
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