pub trait SqMatrix4<F: Float, V3: Vector<F, 3>, V4: Vector<F, 4>>: SqMatrix<V4, F, 4, 16> {
// Required methods
fn perspective(fov: F, aspect: F, near: F, far: F) -> Self;
fn look_at(eye: &V3, center: &V3, up: &V3) -> Self;
fn translate3(&mut self, by: &V3);
fn translate4(&mut self, by: &V4);
}
Expand description
Required Methods§
sourcefn perspective(fov: F, aspect: F, near: F, far: F) -> Self
fn perspective(fov: F, aspect: F, near: F, far: F) -> Self
Generate a perspective matrix
sourcefn look_at(eye: &V3, center: &V3, up: &V3) -> Self
fn look_at(eye: &V3, center: &V3, up: &V3) -> Self
Generate a matrix that represents a ‘look at a vector’
sourcefn translate3(&mut self, by: &V3)
fn translate3(&mut self, by: &V3)
Translate the matrix by a Vec3
sourcefn translate4(&mut self, by: &V4)
fn translate4(&mut self, by: &V4)
Translate the matrix by a Vec4
Object Safety§
This trait is not object safe.