translation_matrix

sknano.core.math.transforms.translation_matrix(v)[source] [edit on github][source]

Generate \(4\times4\) translation matrix given 3D translation Vector v.

Parameters:v (Vector) – Translation vector.
Returns:M – Translation matrix
Return type:matrix