pub trait AsCgmathCanonicalInterface<T> where
T: Copy,
Self: AsCgmathNonCanonicalInterface<T> + Copy, {
fn as_cgmath(&self) -> &T;
fn as_cgmath_mut(&mut self) -> &mut T;
}
Expand description
Trait to interpret canonical math data structures of other math libs as their analogs in cgmath to use operations of cgmath.
Required Methods
Interpret this data structure as cgmath analog to use its operations.
fn as_cgmath_mut(&mut self) -> &mut T
fn as_cgmath_mut(&mut self) -> &mut T
Interpret this data structure mutably as cgmath analog to use its operations.