[][src]Struct skia_safe::matrix44::Matrix44

#[repr(transparent)]
pub struct 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]

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]

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]

pub fn set_rotate_about(
    &mut self,
    v: impl Into<Vector3>,
    radians: scalar
) -> &mut Self
[src]

pub fn set_rotate_about_unit(
    &mut self,
    v: impl Into<Vector3>,
    radians: scalar
) -> &mut Self
[src]

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]

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]

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]

impl SetPrePostScale<(f32, f32, f32)> for Matrix44[src]

impl<'_, '_> MapScalars<(&'_ [f32; 4], &'_ mut [f32; 4])> for Matrix44[src]

impl<'_> MapScalars<&'_ mut [f32; 4]> for Matrix44[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.

impl Mul<Vector4> for Matrix44[src]

type Output = Vector4

The resulting type after applying the * operator.

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]