Apply scaling to the current matrix by scaling by the given x, y and z factors. If C is the current matrix and S the scaling matrix, then the new current matrix will be C S . So when transforming a vector v with the new matrix by using C S
(double x, double y, double z)
| 295 | * @return this |
| 296 | */ |
| 297 | public MatrixStack scale(double x, double y, double z) { |
| 298 | Mat4 c = mats[curr]; |
| 299 | c.scale(x, y, z); |
| 300 | return this; |
| 301 | } |
| 302 | |
| 303 | /** |
| 304 | * Apply a scaling transformation to the current matrix by scaling by the factors in the given {@link Vec3}. |