[−][src]Struct nvg::Transform
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.
fn mul(self, rhs: Self) -> Self::Output
[src]
impl MulAssign<Transform> for Transform
[src]
fn mul_assign(&mut self, rhs: Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,