nalgebra/src/traits/mat_cast.rs
2013-08-05 09:44:56 +02:00

8 lines
211 B
Rust

/// Trait of matrices which can be converted to another matrix. Used to change the type of a matrix
/// components.
pub trait MatCast<M>
{
/// Converts `m` to have the type `M`.
fn from(m: Self) -> M;
}