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

Method setTranslation

src/main/java/field/linalg/Mat4.java:1514–1519  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 4

__sub__Method · 0.45
__add__Method · 0.45
__radd__Method · 0.45
translateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected