makeTranslation method

Matrix4 makeTranslation(
  1. double x,
  2. double y,
  3. double z
)

Implementation

Matrix4 makeTranslation(double x, double y, double z) {
  setValues(1, 0, 0, x, 0, 1, 0, y, 0, 0, 1, z, 0, 0, 0, 1);

  return this;
}