pub struct AffineTransform {
pub elements: [f64; 16],
}Fields§
§elements: [f64; 16]Implementations§
Source§impl AffineTransform
impl AffineTransform
Sourcepub fn is_rigid(&self, tolerance: f64) -> bool
pub fn is_rigid(&self, tolerance: f64) -> bool
Whether this affine map is a finite, proper rigid placement.
Sourcepub fn compose(&self, b: &AffineTransform) -> Result<AffineTransform, String>
pub fn compose(&self, b: &AffineTransform) -> Result<AffineTransform, String>
Compose row-major transforms, applying b first.
pub fn new(elements: [f64; 16]) -> Result<Self, String>
Sourcepub fn rigid_inverse(&self) -> Result<Self, String>
pub fn rigid_inverse(&self) -> Result<Self, String>
Invert a rigid map as [Rᵀ | −Rᵀ·t]. The caller must verify rigidity.
pub fn determinant3(self) -> f64
pub fn point(self, point: Vec3) -> Vec3
Trait Implementations§
Source§impl Clone for AffineTransform
impl Clone for AffineTransform
impl Copy for AffineTransform
Auto Trait Implementations§
impl Forget for AffineTransform
impl Freeze for AffineTransform
impl Move for AffineTransform
impl RefUnwindSafe for AffineTransform
impl Send for AffineTransform
impl Sync for AffineTransform
impl Unpin for AffineTransform
impl UnsafeUnpin for AffineTransform
impl UnwindSafe for AffineTransform
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