[−][src]Struct shipyard_scenegraph::Matrix4
Methods
impl Matrix4
[src]
pub fn new(
a: f64,
b: f64,
c: f64,
d: f64,
e: f64,
f: f64,
g: f64,
h: f64,
i: f64,
j: f64,
k: f64,
l: f64,
m: f64,
n: f64,
o: f64,
p: f64
) -> Self
[src]
a: f64,
b: f64,
c: f64,
d: f64,
e: f64,
f: f64,
g: f64,
h: f64,
i: f64,
j: f64,
k: f64,
l: f64,
m: f64,
n: f64,
o: f64,
p: f64
) -> Self
Trait Implementations
impl AsRef<Matrix4> for Matrix4
[src]
impl AsSliceExt for Matrix4
[src]
impl Clone for Matrix4
[src]
impl Debug for Matrix4
[src]
impl<'_> From<&'_ [f64]> for Matrix4
[src]
impl<'a> FromSliceExt<'a> for Matrix4
[src]
fn from_slice(values: &'a [f64]) -> Self
[src]
fn copy_from_slice(&mut self, values: &[f64])
[src]
impl<'a> MathContainer<'a> for Matrix4
[src]
fn len(&self) -> usize
[src]
fn write_to_vf32(&self, target: &mut [f32])
[src]
fn copy_from(&mut self, other: &Self)
[src]
impl MatrixExt for Matrix4
[src]
fn identity() -> Self
[src]
fn new_from_translation(translation: &Vec3) -> Self
[src]
fn reset_from_translation(&mut self, translation: &Vec3)
[src]
fn translate(&mut self, translation: &Vec3)
[src]
fn new_from_rotation(rotation: &Quat) -> Self
[src]
fn reset_from_rotation(&mut self, rotation: &Quat)
[src]
fn rotate(&mut self, rotation: &Quat)
[src]
fn new_from_scale(scale: &Vec3) -> Self
[src]
fn reset_from_scale(&mut self, scale: &Vec3)
[src]
fn scale(&mut self, scale: &Vec3)
[src]
fn new_from_trs(translation: &Vec3, rotation: &Quat, scale: &Vec3) -> Self
[src]
fn reset_from_trs(&mut self, translation: &Vec3, rotation: &Quat, scale: &Vec3)
[src]
fn set_trs(&mut self, translation: &Vec3, rotation: &Quat, scale: &Vec3)
[src]
fn invert_mut(&mut self) -> Result<(), MatrixError>
[src]
returns true if it was able to invert, false otherwise
fn invert(&self) -> Result<Self, MatrixError>
[src]
impl<T: AsRef<Matrix4>> Mul<T> for Matrix4
[src]
type Output = Matrix4
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self::Output
[src]
impl<T: AsRef<Matrix4>> MulAssign<T> for Matrix4
[src]
fn mul_assign(&mut self, rhs: T)
[src]
impl PartialEq<Matrix4> for Matrix4
[src]
impl StructuralPartialEq for Matrix4
[src]
Auto Trait Implementations
impl RefUnwindSafe for Matrix4
impl Send for Matrix4
impl Sync for Matrix4
impl Unpin for Matrix4
impl UnwindSafe for Matrix4
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,