[][src]Struct nvg::Transform

pub struct Transform(pub [f32; 6]);

Implementations

impl Transform[src]

pub fn identity() -> Transform[src]

pub fn translate(tx: f32, ty: f32) -> Transform[src]

pub fn scale(sx: f32, sy: f32) -> Transform[src]

pub fn rotate(a: f32) -> Transform[src]

pub fn skew_x(a: f32) -> Transform[src]

pub fn skew_y(a: f32) -> Transform[src]

pub fn pre_multiply(self, rhs: Self) -> Self[src]

pub fn inverse(self) -> Transform[src]

pub fn transform_point(&self, pt: Point) -> Point[src]

Trait Implementations

impl Clone for Transform[src]

impl Copy for Transform[src]

impl Debug for Transform[src]

impl Default for Transform[src]

impl<T: AsPrimitive<f32>> From<[T; 6]> for Transform[src]

impl<T: AsPrimitive<f32>> From<(T, T, T, T, T, T)> for Transform[src]

impl Mul<Transform> for Transform[src]

type Output = Transform

The resulting type after applying the * operator.

impl MulAssign<Transform> for Transform[src]

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> SetParameter for T

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.