translate

Function translate 

Source
pub fn translate<T>(trans: Vector3<T>) -> Matrix4<T>
where T: Scalar,
Expand description

Creates a 4x4 translation matrix.

The translation matrix has the form:

[1  0  0  tx]
[0  1  0  ty]
[0  0  1  tz]
[0  0  0  1 ]

ยงParameters

  • trans: Translation vector (tx, ty, tz)