Skip to main content

MatTranslate

Trait MatTranslate 

Source
pub trait MatTranslate<V> {
    // Required method
    fn from_translation(t: V) -> Self;
}
Expand description

trait for minimum of 4 column matrices to create translation

Required Methods§

Source

fn from_translation(t: V) -> Self

create a translation matrix from 3-dimensional vector t

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> MatTranslate<Vec3<T>> for Mat4<T>
where T: Number,

Source§

impl<T> MatTranslate<Vec3<T>> for Mat34<T>
where T: Number,