Struct skia_bindings::SkM44

source ·
#[repr(C)]
pub struct SkM44 { pub fMat: [SkScalar; 16], }

Fields§

§fMat: [SkScalar; 16]

Implementations§

source§

impl SkM44

source

pub unsafe fn RectToRect(src: *const SkRect, dst: *const SkRect) -> SkM44

source

pub unsafe fn LookAt( eye: *const SkV3, center: *const SkV3, up: *const SkV3 ) -> SkM44

source

pub unsafe fn Perspective(near: f32, far: f32, angle: f32) -> SkM44

source

pub unsafe fn getRowMajor(&self, v: *mut SkScalar)

source

pub unsafe fn setRotateUnitSinCos( &mut self, axis: SkV3, sinAngle: SkScalar, cosAngle: SkScalar ) -> *mut SkM44

source

pub unsafe fn setRotate(&mut self, axis: SkV3, radians: SkScalar) -> *mut SkM44

source

pub unsafe fn setConcat( &mut self, a: *const SkM44, b: *const SkM44 ) -> *mut SkM44

source

pub unsafe fn normalizePerspective(&mut self)

source

pub unsafe fn invert(&self, inverse: *mut SkM44) -> bool

source

pub unsafe fn transpose(&self) -> SkM44

source

pub unsafe fn dump(&self)

source

pub unsafe fn map(&self, x: f32, y: f32, z: f32, w: f32) -> SkV4

source

pub unsafe fn preTranslate( &mut self, x: SkScalar, y: SkScalar, z: SkScalar ) -> *mut SkM44

source

pub unsafe fn postTranslate( &mut self, x: SkScalar, y: SkScalar, z: SkScalar ) -> *mut SkM44

source

pub unsafe fn preScale(&mut self, x: SkScalar, y: SkScalar) -> *mut SkM44

source

pub unsafe fn preScale1( &mut self, x: SkScalar, y: SkScalar, z: SkScalar ) -> *mut SkM44

source

pub unsafe fn preConcat(&mut self, arg1: *const SkMatrix) -> *mut SkM44

Trait Implementations§

source§

impl Clone for SkM44

source§

fn clone(&self) -> SkM44

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SkM44

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for SkM44

Auto Trait Implementations§

§

impl RefUnwindSafe for SkM44

§

impl Send for SkM44

§

impl Sync for SkM44

§

impl Unpin for SkM44

§

impl UnwindSafe for SkM44

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.