translation1D

Creates a translation transformation matrix for one-dimensional space. The matrix translates the x-coordinate by the given offset.

Return

An affine transformation matrix that translates the x-coordinate by the offset.

Parameters

offset

The translation offset.