[][src]Struct blend2d::matrix::Matrix2D

#[repr(transparent)]
pub struct Matrix2D(_);

Methods

impl Matrix2D[src]

pub fn new(m00: f64, m01: f64, m10: f64, m11: f64, m20: f64, m21: f64) -> Self[src]

pub fn identity() -> Matrix2D[src]

pub fn translation(x: f64, y: f64) -> Matrix2D[src]

pub fn translation_point<P: Point>(p: &P) -> Matrix2D[src]

pub fn scaling(x: f64, y: f64) -> Matrix2D[src]

pub fn scaling_point<P: Point>(p: &P) -> Matrix2D[src]

pub fn rotation(angle: f64, x: f64, y: f64) -> Matrix2D[src]

pub fn rotation_point<P: Point>(angle: f64, p: &P) -> Matrix2D[src]

pub fn skewing(x: f64, y: f64) -> Matrix2D[src]

pub fn skewing_point<P: Point>(p: &P) -> Matrix2D[src]

pub fn sin_cos(sin: f64, cos: f64, tx: f64, ty: f64) -> Matrix2D[src]

pub fn sin_cos_point<P: Point>(sin: f64, cos: f64, t: &P) -> Matrix2D[src]

pub fn reset(&mut self)[src]

pub fn reset_to_translation(&mut self, x: f64, y: f64)[src]

pub fn reset_to_translation_point<P: Point>(&mut self, p: &P)[src]

pub fn reset_to_scaling(&mut self, x: f64, y: f64)[src]

pub fn reset_to_scaling_point<P: Point>(&mut self, p: &P)[src]

pub fn reset_to_skewing(&mut self, x: f64, y: f64)[src]

pub fn reset_to_skewing_point<P: Point>(&mut self, p: &P)[src]

pub fn reset_to_sin_cos(&mut self, sin: f64, cos: f64, tx: f64, ty: f64)[src]

pub fn reset_to_sin_cos_point<P: Point>(&mut self, sin: f64, cos: f64, t: &P)[src]

pub fn reset_to_rotation(&mut self, angle: f64, x: f64, y: f64)[src]

pub fn reset_to_rotation_point<P: Point>(&mut self, angle: f64, p: &P)[src]

Trait Implementations

impl MatrixTransform for Matrix2D[src]

fn set_matrix(&mut self, m: &Matrix2D) -> Result<()>[src]

fn reset_matrix(&mut self) -> Result<()>[src]

fn translate(&mut self, x: f64, y: f64) -> Result<()>[src]

fn translate_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn scale(&mut self, x: f64, y: f64) -> Result<()>[src]

fn scale_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn skew(&mut self, x: f64, y: f64) -> Result<()>[src]

fn skew_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn rotate(&mut self, angle: f64) -> Result<()>[src]

fn rotate_around(&mut self, angle: f64, x: f64, y: f64) -> Result<()>[src]

fn rotate_around_point<P: Point>(&mut self, angle: f64, p: &P) -> Result<()>[src]

fn transform(&mut self, mat: &Matrix2D) -> Result<()>[src]

fn post_translate(&mut self, x: f64, y: f64) -> Result<()>[src]

fn post_translate_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn post_scale(&mut self, x: f64, y: f64) -> Result<()>[src]

fn post_scale_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn post_skew(&mut self, x: f64, y: f64) -> Result<()>[src]

fn post_skew_point<P: Point>(&mut self, p: &P) -> Result<()>[src]

fn post_rotate(&mut self, angle: f64) -> Result<()>[src]

fn post_rotate_around(&mut self, angle: f64, x: f64, y: f64) -> Result<()>[src]

fn post_rotate_around_point<P: Point>(
    &mut self,
    angle: f64,
    p: &P
) -> Result<()>
[src]

fn post_transform(&mut self, mat: &Matrix2D) -> Result<()>[src]

impl Copy for Matrix2D[src]

impl Clone for Matrix2D[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Matrix2D[src]

Auto Trait Implementations

impl Send for Matrix2D

impl Sync for Matrix2D

Blanket Implementations

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

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.