[−][src]Struct skia_safe::matrix44::Matrix44
Methods
impl Matrix44
[src]
pub const ROWS: usize
[src]
pub const COLUMNS: usize
[src]
pub fn new_identity() -> Self
[src]
pub fn new_nan() -> Self
[src]
pub fn get_type(&self) -> TypeMask
[src]
pub fn is_identity(&self) -> bool
[src]
pub fn is_translate(&self) -> bool
[src]
pub fn is_scale_translate(&self) -> bool
[src]
pub fn is_scale(&self) -> bool
[src]
pub fn has_perspective(&self) -> bool
[src]
pub fn set_identity(&mut self) -> &mut Self
[src]
pub fn reset(&mut self) -> &mut Self
[src]
pub fn get(&self, (row, col): (usize, usize)) -> scalar
[src]
pub fn set(&mut self, (row, col): (usize, usize), value: scalar) -> &mut Self
[src]
pub fn as_col_major(&self, floats: &mut [scalar; 16])
[src]
pub fn as_row_major(&self, floats: &mut [scalar; 16])
[src]
pub fn set_col_major(&mut self, floats: &[scalar; 16]) -> &mut Self
[src]
pub fn set_row_major(&mut self, floats: &[scalar; 16]) -> &mut Self
[src]
pub fn set_3x3(
&mut self,
m_00: scalar,
m_10: scalar,
m_20: scalar,
m_01: scalar,
m_11: scalar,
m_21: scalar,
m_02: scalar,
m_12: scalar,
m_22: scalar
) -> &mut Self
[src]
&mut self,
m_00: scalar,
m_10: scalar,
m_20: scalar,
m_01: scalar,
m_11: scalar,
m_21: scalar,
m_02: scalar,
m_12: scalar,
m_22: scalar
) -> &mut Self
pub fn set_3x3_row_major(&mut self, floats: &[scalar; 9]) -> &mut Self
[src]
pub fn set_4x4(
&mut self,
m_00: scalar,
m_10: scalar,
m_20: scalar,
m_30: scalar,
m_01: scalar,
m_11: scalar,
m_21: scalar,
m_31: scalar,
m_02: scalar,
m_12: scalar,
m_22: scalar,
m_32: scalar,
m_03: scalar,
m_13: scalar,
m_23: scalar,
m_33: scalar
) -> &mut Self
[src]
&mut self,
m_00: scalar,
m_10: scalar,
m_20: scalar,
m_30: scalar,
m_01: scalar,
m_11: scalar,
m_21: scalar,
m_31: scalar,
m_02: scalar,
m_12: scalar,
m_22: scalar,
m_32: scalar,
m_03: scalar,
m_13: scalar,
m_23: scalar,
m_33: scalar
) -> &mut Self
pub fn set_translate(&mut self, d: impl Into<Vector3>) -> &mut Self
[src]
pub fn pre_translate(&mut self, d: impl Into<Vector3>) -> &mut Self
[src]
pub fn post_translate(&mut self, d: impl Into<Vector3>) -> &mut Self
[src]
pub fn set_rotate_degrees_about(
&mut self,
v: impl Into<Vector3>,
degrees: scalar
) -> &mut Self
[src]
&mut self,
v: impl Into<Vector3>,
degrees: scalar
) -> &mut Self
pub fn set_rotate_about(
&mut self,
v: impl Into<Vector3>,
radians: scalar
) -> &mut Self
[src]
&mut self,
v: impl Into<Vector3>,
radians: scalar
) -> &mut Self
pub fn set_rotate_about_unit(
&mut self,
v: impl Into<Vector3>,
radians: scalar
) -> &mut Self
[src]
&mut self,
v: impl Into<Vector3>,
radians: scalar
) -> &mut Self
pub fn set_concat(&mut self, a: &Self, b: &Self) -> &mut Self
[src]
pub fn pre_concat(&mut self, m: &Self) -> &mut Self
[src]
pub fn post_concat(&mut self, m: &Self) -> &mut Self
[src]
#[must_use]
pub fn inverse(&self) -> Option<Matrix44>
[src]
Deprecated since 0.12.0:
use invert()
#[must_use]
pub fn invert(&self) -> Option<Matrix44>
[src]
pub fn transpose(&mut self) -> &mut Self
[src]
pub fn map_scalars(&self, src: &[scalar; 4], dst: &mut [scalar; 4])
[src]
pub fn preserves_2d_axis_alignment(
&self,
epsilon: impl Into<Option<scalar>>
) -> bool
[src]
&self,
epsilon: impl Into<Option<scalar>>
) -> bool
pub fn dump(&self)
[src]
pub fn determinant(&self) -> f64
[src]
impl Matrix44
[src]
pub fn look_at(
eye: impl Into<Point3>,
center: impl Into<Point3>,
up: impl Into<Point3>
) -> Matrix44
[src]
eye: impl Into<Point3>,
center: impl Into<Point3>,
up: impl Into<Point3>
) -> Matrix44
pub fn perspective(near: f32, far: f32, angle: f32) -> Matrix44
[src]
pub fn map_points(&self, src: &[Point3], dst: &mut [Point]) -> &Self
[src]
Trait Implementations
impl SetPrePostScale<f32> for Matrix44
[src]
fn set_scale(&mut self, s: scalar) -> &mut Self
[src]
fn pre_scale(&mut self, s: scalar) -> &mut Self
[src]
fn post_scale(&mut self, s: scalar) -> &mut Self
[src]
impl SetPrePostScale<(f32, f32, f32)> for Matrix44
[src]
fn set_scale(&mut self, (sx, sy, sz): (scalar, scalar, scalar)) -> &mut Self
[src]
fn pre_scale(&mut self, (sx, sy, sz): (scalar, scalar, scalar)) -> &mut Self
[src]
fn post_scale(&mut self, (sx, sy, sz): (scalar, scalar, scalar)) -> &mut Self
[src]
impl<'_, '_> MapScalars<(&'_ [f32; 4], &'_ mut [f32; 4])> for Matrix44
[src]
impl<'_> MapScalars<&'_ mut [f32; 4]> for Matrix44
[src]
fn map_scalars(&self, vec: &mut [scalar; 4])
[src]
impl<'_, '_> Map2<(&'_ [f32], &'_ mut [f32])> for Matrix44
[src]
impl<'_, '_> Map2<(&'_ [f64], &'_ mut [f64])> for Matrix44
[src]
impl Default for Matrix44
[src]
impl Clone for Matrix44
[src]
impl Into<Matrix> for Matrix44
[src]
impl PartialEq<Matrix44> for Matrix44
[src]
impl Copy for Matrix44
[src]
impl Mul<Matrix44> for Matrix44
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
impl Mul<Vector4> for Matrix44
[src]
Auto Trait Implementations
impl Send for Matrix44
impl Unpin for Matrix44
impl Sync for Matrix44
impl RefUnwindSafe for Matrix44
impl UnwindSafe for Matrix44
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,