[−][src]Struct fumarole::math::Mat2
Methods
impl<I> Mat2<I>
[src]
pub fn new(data: [[I; 2]; 2]) -> Mat2<I>
[src]
pub fn from_radians(angle: f32) -> Mat2<f32>
[src]
pub fn from_degrees(angle: f32) -> Mat2<f32>
[src]
pub fn as_array(self) -> [[I; 2]; 2]
[src]
Trait Implementations
impl<I> Add<I> for Mat2<I> where
I: Add<I> + Copy,
<I as Add<I>>::Output: Into<I>,
[src]
I: Add<I> + Copy,
<I as Add<I>>::Output: Into<I>,
type Output = Mat2<I>
The resulting type after applying the +
operator.
fn add(self, other: I) -> Self::Output
[src]
impl<I> Add<Mat2<I>> for Mat2<I> where
I: Add<I> + Copy,
<I as Add<I>>::Output: Into<I>,
[src]
I: Add<I> + Copy,
<I as Add<I>>::Output: Into<I>,
type Output = Mat2<I>
The resulting type after applying the +
operator.
fn add(self, other: Mat2<I>) -> Self::Output
[src]
impl<I> AddAssign<I> for Mat2<I> where
I: AddAssign<I> + Copy,
[src]
I: AddAssign<I> + Copy,
fn add_assign(&mut self, other: I)
[src]
impl<I> AddAssign<Mat2<I>> for Mat2<I> where
I: AddAssign<I> + Copy,
[src]
I: AddAssign<I> + Copy,
fn add_assign(&mut self, other: Mat2<I>)
[src]
impl<I> Div<I> for Mat2<I> where
I: Div<I> + Copy,
<I as Div<I>>::Output: Into<I>,
[src]
I: Div<I> + Copy,
<I as Div<I>>::Output: Into<I>,
type Output = Mat2<I>
The resulting type after applying the /
operator.
fn div(self, other: I) -> Self::Output
[src]
impl<I> Div<Mat2<I>> for Mat2<I> where
I: Div<I> + Copy,
<I as Div<I>>::Output: Into<I>,
[src]
I: Div<I> + Copy,
<I as Div<I>>::Output: Into<I>,
type Output = Mat2<I>
The resulting type after applying the /
operator.
fn div(self, other: Mat2<I>) -> Self::Output
[src]
impl<I> DivAssign<I> for Mat2<I> where
I: DivAssign<I> + Copy,
[src]
I: DivAssign<I> + Copy,
fn div_assign(&mut self, other: I)
[src]
impl<I> DivAssign<Mat2<I>> for Mat2<I> where
I: DivAssign<I> + Copy,
[src]
I: DivAssign<I> + Copy,
fn div_assign(&mut self, other: Mat2<I>)
[src]
impl<I> Mul<I> for Mat2<I> where
I: Mul<I> + Copy,
<I as Mul<I>>::Output: Into<I>,
[src]
I: Mul<I> + Copy,
<I as Mul<I>>::Output: Into<I>,
type Output = Mat2<I>
The resulting type after applying the *
operator.
fn mul(self, other: I) -> Self::Output
[src]
impl<I> Mul<Mat2<I>> for Vec2<I> where
I: Add<I> + Mul<I> + Copy,
<I as Mul<I>>::Output: Into<I>,
<I as Add<I>>::Output: Into<I>,
[src]
I: Add<I> + Mul<I> + Copy,
<I as Mul<I>>::Output: Into<I>,
<I as Add<I>>::Output: Into<I>,
type Output = Vec2<I>
The resulting type after applying the *
operator.
fn mul(self, other: Mat2<I>) -> Self::Output
[src]
impl<I> Mul<Mat2<I>> for Mat2<I> where
I: Mul<I> + Copy,
<I as Mul<I>>::Output: Into<I>,
[src]
I: Mul<I> + Copy,
<I as Mul<I>>::Output: Into<I>,
type Output = Mat2<I>
The resulting type after applying the *
operator.
fn mul(self, other: Mat2<I>) -> Self::Output
[src]
impl<I> Mul<Vec2<I>> for Mat2<I> where
I: Add<I> + Mul<I> + Copy,
<I as Mul<I>>::Output: Into<I>,
<I as Add<I>>::Output: Into<I>,
[src]
I: Add<I> + Mul<I> + Copy,
<I as Mul<I>>::Output: Into<I>,
<I as Add<I>>::Output: Into<I>,
type Output = Vec2<I>
The resulting type after applying the *
operator.
fn mul(self, other: Vec2<I>) -> Self::Output
[src]
impl<I> MulAssign<I> for Mat2<I> where
I: MulAssign<I> + Copy,
[src]
I: MulAssign<I> + Copy,
fn mul_assign(&mut self, other: I)
[src]
impl<I> MulAssign<Mat2<I>> for Vec2<I> where
Vec2<I>: Mul<Mat2<I>> + Clone,
<Vec2<I> as Mul<Mat2<I>>>::Output: Into<Vec2<I>>,
[src]
Vec2<I>: Mul<Mat2<I>> + Clone,
<Vec2<I> as Mul<Mat2<I>>>::Output: Into<Vec2<I>>,
fn mul_assign(&mut self, other: Mat2<I>)
[src]
impl<I> MulAssign<Mat2<I>> for Mat2<I> where
I: MulAssign<I> + Copy,
[src]
I: MulAssign<I> + Copy,
fn mul_assign(&mut self, other: Mat2<I>)
[src]
impl<I> Sub<I> for Mat2<I> where
I: Sub<I> + Copy,
<I as Sub<I>>::Output: Into<I>,
[src]
I: Sub<I> + Copy,
<I as Sub<I>>::Output: Into<I>,
type Output = Mat2<I>
The resulting type after applying the -
operator.
fn sub(self, other: I) -> Self::Output
[src]
impl<I> Sub<Mat2<I>> for Mat2<I> where
I: Sub<I> + Copy,
<I as Sub<I>>::Output: Into<I>,
[src]
I: Sub<I> + Copy,
<I as Sub<I>>::Output: Into<I>,
type Output = Mat2<I>
The resulting type after applying the -
operator.
fn sub(self, other: Mat2<I>) -> Self::Output
[src]
impl<I> SubAssign<I> for Mat2<I> where
I: SubAssign<I> + Copy,
[src]
I: SubAssign<I> + Copy,
fn sub_assign(&mut self, other: I)
[src]
impl<I> SubAssign<Mat2<I>> for Mat2<I> where
I: SubAssign<I> + Copy,
[src]
I: SubAssign<I> + Copy,
fn sub_assign(&mut self, other: Mat2<I>)
[src]
Auto Trait Implementations
impl<I> RefUnwindSafe for Mat2<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for Mat2<I> where
I: Send,
I: Send,
impl<I> Sync for Mat2<I> where
I: Sync,
I: Sync,
impl<I> Unpin for Mat2<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for Mat2<I> where
I: UnwindSafe,
I: UnwindSafe,
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, 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>,