[−][src]Struct rask_engine::math::mat3::Mat3
A 3x3 matrix with f32
elements.
Implementations
impl Mat3
[src]
pub const fn new(
a: f32,
b: f32,
c: f32,
d: f32,
e: f32,
f: f32,
g: f32,
h: f32,
i: f32
) -> Self
[src]
a: f32,
b: f32,
c: f32,
d: f32,
e: f32,
f: f32,
g: f32,
h: f32,
i: f32
) -> Self
Creates a new Mat3
of the form:
(a b c)
(d e f)
(g h i)
pub const fn from_vec3(v1: Vec3, v2: Vec3, v3: Vec3) -> Self
[src]
Creates a new Mat3
from three column Vec3
s.
pub const fn zero() -> Self
[src]
Returns the zero matrix.
pub const fn identity() -> Self
[src]
Returns the identity matrix.
pub fn rotation(angle: f32) -> Self
[src]
Returns a matrix that rotates by angle
.
pub const fn scaling(scale_x: f32, scale_y: f32) -> Self
[src]
Returns a matrix that scales by scale_x
and scale_y
.
pub const fn translation(x: f32, y: f32) -> Self
[src]
Returns a matrix that translates by (x
, y
).
pub const fn transpose(self) -> Self
[src]
Returns the transposed matrix.
Trait Implementations
impl Add<Mat3> for Mat3
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self::Output
[src]
impl AddAssign<Mat3> for Mat3
[src]
fn add_assign(&mut self, other: Self)
[src]
impl AsRef<[f32; 9]> for Mat3
[src]
impl Clone for Mat3
[src]
impl Copy for Mat3
[src]
impl Debug for Mat3
[src]
impl Default for Mat3
[src]
impl Div<f32> for Mat3
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, scale: f32) -> Self::Output
[src]
impl DivAssign<f32> for Mat3
[src]
fn div_assign(&mut self, scale: f32)
[src]
impl Eq for Mat3
[src]
impl From<SRT> for Mat3
[src]
impl Mul<Mat3> for f32
[src]
type Output = Mat3
The resulting type after applying the *
operator.
fn mul(self, rhs: Mat3) -> Self::Output
[src]
impl Mul<Mat3> for Mat3
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, b: Self) -> Self::Output
[src]
Laderman Algorithm, see: http://www.ams.org/journals/bull/1976-82-01/S0002-9904-1976-13988-2/S0002-9904-1976-13988-2.pdf
impl Mul<Vec3> for Mat3
[src]
type Output = Vec3
The resulting type after applying the *
operator.
fn mul(self, other: Vec3) -> Self::Output
[src]
impl Mul<f32> for Mat3
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, scale: f32) -> Self::Output
[src]
impl MulAssign<Mat3> for Mat3
[src]
fn mul_assign(&mut self, other: Self)
[src]
impl MulAssign<f32> for Mat3
[src]
fn mul_assign(&mut self, scale: f32)
[src]
impl Neg for Mat3
[src]
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl PartialEq<Mat3> for Mat3
[src]
impl Sub<Mat3> for Mat3
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self::Output
[src]
impl SubAssign<Mat3> for Mat3
[src]
fn sub_assign(&mut self, other: Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Mat3
impl Send for Mat3
impl Sync for Mat3
impl Unpin for Mat3
impl UnwindSafe for Mat3
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
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<S, T> Collide<[T]> for S where
T: Collide<S>,
[src]
T: Collide<S>,
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
const ALIGN: usize
type Init = T
The type for initializers.
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)
impl<T> Resource for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
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> TryDefault for T where
T: Default,
T: Default,
fn try_default() -> Result<T, String>
fn unwrap_default() -> 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>,