MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / scale

Method scale

src/main/java/field/linalg/MatrixStack.java:297–301  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}.

Callers

nothing calls this directly

Calls 1

scaleMethod · 0.95

Tested by

no test coverage detected