[][src]Struct pathfinder_geometry::transform2d::Matrix2x2F

pub struct Matrix2x2F(pub F32x4);

A 2x2 matrix, optimized with SIMD, in column-major order.

Methods

impl Matrix2x2F[src]

pub fn from_scale<S>(scale: S) -> Matrix2x2F where
    S: IntoVector2F
[src]

pub fn from_rotation(theta: f32) -> Matrix2x2F[src]

pub fn from_rotation_vector(vector: UnitVector) -> Matrix2x2F[src]

pub fn row_major(m00: f32, m01: f32, m10: f32, m11: f32) -> Matrix2x2F[src]

pub fn entrywise_mul(&self, other: &Matrix2x2F) -> Matrix2x2F[src]

pub fn adjugate(&self) -> Matrix2x2F[src]

pub fn det(&self) -> f32[src]

pub fn inverse(&self) -> Matrix2x2F[src]

pub fn scale(&self, factor: f32) -> Matrix2x2F[src]

pub fn extract_scale(&self) -> Vector2F[src]

Extracts the scale from this matrix.

pub fn m11(&self) -> f32[src]

pub fn m21(&self) -> f32[src]

pub fn m12(&self) -> f32[src]

pub fn m22(&self) -> f32[src]

Trait Implementations

impl Add<Matrix2x2F> for Matrix2x2F[src]

type Output = Matrix2x2F

The resulting type after applying the + operator.

impl Clone for Matrix2x2F[src]

impl Copy for Matrix2x2F[src]

impl Debug for Matrix2x2F[src]

impl Default for Matrix2x2F[src]

impl Mul<Matrix2x2F> for Matrix2x2F[src]

type Output = Matrix2x2F

The resulting type after applying the * operator.

impl Mul<Vector2F> for Matrix2x2F[src]

type Output = Vector2F

The resulting type after applying the * operator.

impl Neg for Matrix2x2F[src]

type Output = Matrix2x2F

The resulting type after applying the - operator.

impl PartialEq<Matrix2x2F> for Matrix2x2F[src]

impl StructuralPartialEq for Matrix2x2F[src]

impl Sub<Matrix2x2F> for Matrix2x2F[src]

type Output = Matrix2x2F

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.