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§
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.
impl FromMatrixParts<f32, 2, 2> for Mat2
Available on crate feature
glam
only.source§impl FromMatrixParts<f32, 2, 2> for Mat2
Available on crate feature ultraviolet
only.
impl FromMatrixParts<f32, 2, 2> for Mat2
Available on crate feature
ultraviolet
only.source§impl FromMatrixParts<f32, 3, 3> for Mat3
Available on crate feature glam
only.
impl FromMatrixParts<f32, 3, 3> for Mat3
Available on crate feature
glam
only.source§impl FromMatrixParts<f32, 3, 3> for Mat3
Available on crate feature ultraviolet
only.
impl FromMatrixParts<f32, 3, 3> for Mat3
Available on crate feature
ultraviolet
only.source§impl FromMatrixParts<f32, 4, 4> for Mat4
Available on crate feature glam
only.
impl FromMatrixParts<f32, 4, 4> for Mat4
Available on crate feature
glam
only.source§impl FromMatrixParts<f32, 4, 4> for Mat4
Available on crate feature ultraviolet
only.
impl FromMatrixParts<f32, 4, 4> for Mat4
Available on crate feature
ultraviolet
only.source§impl<T> FromMatrixParts<T, 2, 2> for Matrix2<T>
Available on crate feature cgmath
only.
impl<T> FromMatrixParts<T, 2, 2> for Matrix2<T>
Available on crate feature
cgmath
only.fn from_parts(parts: [[T; 2]; 2]) -> Self
source§impl<T> FromMatrixParts<T, 2, 2> for ColumnMatrix2<T>
Available on crate feature mint
only.
impl<T> FromMatrixParts<T, 2, 2> for ColumnMatrix2<T>
Available on crate feature
mint
only.fn from_parts(parts: [[T; 2]; 2]) -> Self
source§impl<T> FromMatrixParts<T, 2, 3> for ColumnMatrix3x2<T>
Available on crate feature mint
only.
impl<T> FromMatrixParts<T, 2, 3> for ColumnMatrix3x2<T>
Available on crate feature
mint
only.fn from_parts(parts: [[T; 3]; 2]) -> Self
source§impl<T> FromMatrixParts<T, 2, 4> for ColumnMatrix4x2<T>
Available on crate feature mint
only.
impl<T> FromMatrixParts<T, 2, 4> for ColumnMatrix4x2<T>
Available on crate feature
mint
only.fn from_parts(parts: [[T; 4]; 2]) -> Self
source§impl<T> FromMatrixParts<T, 3, 2> for ColumnMatrix2x3<T>
Available on crate feature mint
only.
impl<T> FromMatrixParts<T, 3, 2> for ColumnMatrix2x3<T>
Available on crate feature
mint
only.fn from_parts(parts: [[T; 2]; 3]) -> Self
source§impl<T> FromMatrixParts<T, 3, 3> for Matrix3<T>
Available on crate feature cgmath
only.
impl<T> FromMatrixParts<T, 3, 3> for Matrix3<T>
Available on crate feature
cgmath
only.fn from_parts(parts: [[T; 3]; 3]) -> Self
source§impl<T> FromMatrixParts<T, 3, 3> for ColumnMatrix3<T>
Available on crate feature mint
only.
impl<T> FromMatrixParts<T, 3, 3> for ColumnMatrix3<T>
Available on crate feature
mint
only.fn from_parts(parts: [[T; 3]; 3]) -> Self
source§impl<T> FromMatrixParts<T, 3, 4> for ColumnMatrix4x3<T>
Available on crate feature mint
only.
impl<T> FromMatrixParts<T, 3, 4> for ColumnMatrix4x3<T>
Available on crate feature
mint
only.fn from_parts(parts: [[T; 4]; 3]) -> Self
source§impl<T> FromMatrixParts<T, 4, 2> for ColumnMatrix2x4<T>
Available on crate feature mint
only.
impl<T> FromMatrixParts<T, 4, 2> for ColumnMatrix2x4<T>
Available on crate feature
mint
only.fn from_parts(parts: [[T; 2]; 4]) -> Self
source§impl<T> FromMatrixParts<T, 4, 3> for ColumnMatrix3x4<T>
Available on crate feature mint
only.
impl<T> FromMatrixParts<T, 4, 3> for ColumnMatrix3x4<T>
Available on crate feature
mint
only.fn from_parts(parts: [[T; 3]; 4]) -> Self
source§impl<T> FromMatrixParts<T, 4, 4> for Matrix4<T>
Available on crate feature cgmath
only.
impl<T> FromMatrixParts<T, 4, 4> for Matrix4<T>
Available on crate feature
cgmath
only.fn from_parts(parts: [[T; 4]; 4]) -> Self
source§impl<T> FromMatrixParts<T, 4, 4> for ColumnMatrix4<T>
Available on crate feature mint
only.
impl<T> FromMatrixParts<T, 4, 4> for ColumnMatrix4<T>
Available on crate feature
mint
only.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.
impl<T: MatrixScalar> FromMatrixParts<T, 2, 2> for Mat2<T>
Available on crate feature
vek
only.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.
impl<T: MatrixScalar> FromMatrixParts<T, 3, 3> for Mat3<T>
Available on crate feature
vek
only.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.
impl<T: MatrixScalar> FromMatrixParts<T, 4, 4> for Mat4<T>
Available on crate feature
vek
only.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.
impl<T: MatrixScalar, const C: usize, const R: usize> FromMatrixParts<T, C, R> for SMatrix<T, R, C>
Available on crate feature
nalgebra
only.