Apply a translation to the current matrix by translating by the given number of units in x, y and z. If C is the current matrix and T the translation matrix, then the new current matrix will be C T . So when transforming a vector v with the new
(double x, double y, double z)
| 260 | * @return this |
| 261 | */ |
| 262 | public MatrixStack translate(double x, double y, double z) { |
| 263 | Mat4 c = mats[curr]; |
| 264 | c.translate(x, y, z); |
| 265 | return this; |
| 266 | } |
| 267 | |
| 268 | /** |
| 269 | * Apply a translation to the current matrix by translating by the number of units in the given {@link Vec3}. |