Struct forma::GeomPresTransform
pub struct GeomPresTransform(/* private fields */);
Implementations§
§impl GeomPresTransform
impl GeomPresTransform
pub fn new(transform: [f32; 9]) -> Option<GeomPresTransform>
pub fn new(transform: [f32; 9]) -> Option<GeomPresTransform>
[ x' ] [ t.0 t.1 t.4 ] [ x ]
[ y' ] = [ t.2 t.3 t.5 ] [ y ]
[ 1 ] [ 0 0 1 ] [ 1 ]
pub fn is_identity(&self) -> bool
pub fn as_slice(&self) -> [f32; 6]
Trait Implementations§
§impl Clone for GeomPresTransform
impl Clone for GeomPresTransform
§fn clone(&self) -> GeomPresTransform
fn clone(&self) -> GeomPresTransform
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for GeomPresTransform
impl Debug for GeomPresTransform
§impl Default for GeomPresTransform
impl Default for GeomPresTransform
§fn default() -> GeomPresTransform
fn default() -> GeomPresTransform
Returns the “default value” for a type. Read more
§impl PartialEq for GeomPresTransform
impl PartialEq for GeomPresTransform
§fn eq(&self, other: &GeomPresTransform) -> bool
fn eq(&self, other: &GeomPresTransform) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl TryFrom<[f32; 6]> for GeomPresTransform
impl TryFrom<[f32; 6]> for GeomPresTransform
§type Error = GeomPresTransformError
type Error = GeomPresTransformError
The type returned in the event of a conversion error.
§impl TryFrom<AffineTransform> for GeomPresTransform
impl TryFrom<AffineTransform> for GeomPresTransform
§type Error = GeomPresTransformError
type Error = GeomPresTransformError
The type returned in the event of a conversion error.
§fn try_from(
t: AffineTransform,
) -> Result<GeomPresTransform, <GeomPresTransform as TryFrom<AffineTransform>>::Error>
fn try_from( t: AffineTransform, ) -> Result<GeomPresTransform, <GeomPresTransform as TryFrom<AffineTransform>>::Error>
Performs the conversion.
impl Copy for GeomPresTransform
impl Eq for GeomPresTransform
impl StructuralPartialEq for GeomPresTransform
Auto Trait Implementations§
impl Freeze for GeomPresTransform
impl RefUnwindSafe for GeomPresTransform
impl Send for GeomPresTransform
impl Sync for GeomPresTransform
impl Unpin for GeomPresTransform
impl UnwindSafe for GeomPresTransform
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)