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

Method translate

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

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

translateMethod · 0.95

Tested by

no test coverage detected