translation static method

List<double> translation(
  1. double tx,
  2. double ty,
  3. double tz
)

Implementation

static List<double> translation(double tx, double ty, double tz) {
  return [
    // x y z w
    1, 0, 0, 0,
    0, 1, 0, 0,
    0, 0, 1, 0,
    tx, ty, tz, 1,
  ];
}