translate static method

Returns a translation matrix for the given x, y, z offsets.

Implementation

static MatrixBase translate(num x, num y, num z) => createFactory(
  1, 0, 0, 0,
  0, 1, 0, 0,
  0, 0, 1, 0,
  x.toDouble(), y.toDouble(), z.toDouble(), 1,
);