Set only the translation components of this matrix (m30, m31, m32) to the given values (x, y, z) . To build a translation matrix instead, use #translation(double, double, double). To apply a translation to another matrix, use #translate(double, double, double).
(double x, double y, double z)
| 1512 | * @see #translate(double, double, double) |
| 1513 | */ |
| 1514 | public Mat4 setTranslation(double x, double y, double z) { |
| 1515 | m30 = x; |
| 1516 | m31 = y; |
| 1517 | m32 = z; |
| 1518 | return this; |
| 1519 | } |
| 1520 | |
| 1521 | /** |
| 1522 | * Set only the translation components of this matrix <tt>(m30, m31, m32)</tt> to the given values <tt>(xyz.x, xyz.y, xyz.z)</tt>. |