Trait encase::matrix::FromMatrixParts

source ·
pub trait FromMatrixParts<T: MatrixScalar, const C: usize, const R: usize> {
    // Required method
    fn from_parts(parts: [[T; R]; C]) -> Self;
}
Expand description

Enables the creation of a matrix (via [[T; R]; C])

Required Methods§

source

fn from_parts(parts: [[T; R]; C]) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromMatrixParts<f32, 2, 2> for Mat2

Available on crate feature glam only.
source§

fn from_parts(parts: [[f32; 2]; 2]) -> Self

source§

impl FromMatrixParts<f32, 2, 2> for Mat2
where Self: From<[[f32; 2]; 2]>, f32: MatrixScalar,

Available on crate feature ultraviolet only.
source§

fn from_parts(parts: [[f32; 2]; 2]) -> Self

source§

impl FromMatrixParts<f32, 3, 3> for Mat3

Available on crate feature glam only.
source§

fn from_parts(parts: [[f32; 3]; 3]) -> Self

source§

impl FromMatrixParts<f32, 3, 3> for Mat3
where Self: From<[[f32; 3]; 3]>, f32: MatrixScalar,

Available on crate feature ultraviolet only.
source§

fn from_parts(parts: [[f32; 3]; 3]) -> Self

source§

impl FromMatrixParts<f32, 4, 4> for Mat4

Available on crate feature glam only.
source§

fn from_parts(parts: [[f32; 4]; 4]) -> Self

source§

impl FromMatrixParts<f32, 4, 4> for Mat4
where Self: From<[[f32; 4]; 4]>, f32: MatrixScalar,

Available on crate feature ultraviolet only.
source§

fn from_parts(parts: [[f32; 4]; 4]) -> Self

source§

impl<T> FromMatrixParts<T, 2, 2> for Matrix2<T>
where Self: From<[[T; 2]; 2]>, T: MatrixScalar,

Available on crate feature cgmath only.
source§

fn from_parts(parts: [[T; 2]; 2]) -> Self

source§

impl<T> FromMatrixParts<T, 2, 2> for ColumnMatrix2<T>
where Self: From<[[T; 2]; 2]>, T: MatrixScalar,

Available on crate feature mint only.
source§

fn from_parts(parts: [[T; 2]; 2]) -> Self

source§

impl<T> FromMatrixParts<T, 2, 3> for ColumnMatrix3x2<T>
where Self: From<[[T; 3]; 2]>, T: MatrixScalar,

Available on crate feature mint only.
source§

fn from_parts(parts: [[T; 3]; 2]) -> Self

source§

impl<T> FromMatrixParts<T, 2, 4> for ColumnMatrix4x2<T>
where Self: From<[[T; 4]; 2]>, T: MatrixScalar,

Available on crate feature mint only.
source§

fn from_parts(parts: [[T; 4]; 2]) -> Self

source§

impl<T> FromMatrixParts<T, 3, 2> for ColumnMatrix2x3<T>
where Self: From<[[T; 2]; 3]>, T: MatrixScalar,

Available on crate feature mint only.
source§

fn from_parts(parts: [[T; 2]; 3]) -> Self

source§

impl<T> FromMatrixParts<T, 3, 3> for Matrix3<T>
where Self: From<[[T; 3]; 3]>, T: MatrixScalar,

Available on crate feature cgmath only.
source§

fn from_parts(parts: [[T; 3]; 3]) -> Self

source§

impl<T> FromMatrixParts<T, 3, 3> for ColumnMatrix3<T>
where Self: From<[[T; 3]; 3]>, T: MatrixScalar,

Available on crate feature mint only.
source§

fn from_parts(parts: [[T; 3]; 3]) -> Self

source§

impl<T> FromMatrixParts<T, 3, 4> for ColumnMatrix4x3<T>
where Self: From<[[T; 4]; 3]>, T: MatrixScalar,

Available on crate feature mint only.
source§

fn from_parts(parts: [[T; 4]; 3]) -> Self

source§

impl<T> FromMatrixParts<T, 4, 2> for ColumnMatrix2x4<T>
where Self: From<[[T; 2]; 4]>, T: MatrixScalar,

Available on crate feature mint only.
source§

fn from_parts(parts: [[T; 2]; 4]) -> Self

source§

impl<T> FromMatrixParts<T, 4, 3> for ColumnMatrix3x4<T>
where Self: From<[[T; 3]; 4]>, T: MatrixScalar,

Available on crate feature mint only.
source§

fn from_parts(parts: [[T; 3]; 4]) -> Self

source§

impl<T> FromMatrixParts<T, 4, 4> for Matrix4<T>
where Self: From<[[T; 4]; 4]>, T: MatrixScalar,

Available on crate feature cgmath only.
source§

fn from_parts(parts: [[T; 4]; 4]) -> Self

source§

impl<T> FromMatrixParts<T, 4, 4> for ColumnMatrix4<T>
where Self: From<[[T; 4]; 4]>, T: MatrixScalar,

Available on crate feature mint only.
source§

fn from_parts(parts: [[T; 4]; 4]) -> Self

source§

impl<T: MatrixScalar> FromMatrixParts<T, 2, 2> for Mat2<T>

Available on crate feature vek only.
source§

fn from_parts(parts: [[T; 2]; 2]) -> Self

source§

impl<T: MatrixScalar> FromMatrixParts<T, 3, 3> for Mat3<T>

Available on crate feature vek only.
source§

fn from_parts(parts: [[T; 3]; 3]) -> Self

source§

impl<T: MatrixScalar> FromMatrixParts<T, 4, 4> for Mat4<T>

Available on crate feature vek only.
source§

fn from_parts(parts: [[T; 4]; 4]) -> Self

source§

impl<T: MatrixScalar, const C: usize, const R: usize> FromMatrixParts<T, C, R> for SMatrix<T, R, C>

Available on crate feature nalgebra only.
source§

fn from_parts(parts: [[T; R]; C]) -> Self

Implementors§