Matrix4d.setTranslation

Set only the translation components <code>(m30, m31, m32)</code> of this matrix to the given values <code>(xyz.x, xyz.y, xyz.z)</code>. <p> To build a translation matrix instead, use {@link #translation(ref Vector3d)}. To apply a translation, use {@link #translate(ref Vector3d)}.

@see #translation(ref Vector3d) @see #translate(ref Vector3d)

@param xyz the units to translate in <code>(x, y, z)</code> @return this

  1. Matrix4d setTranslation(double x, double y, double z)
  2. Matrix4d setTranslation(Vector3d xyz)
    struct Matrix4d
    ref return
    setTranslation

Meta