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

Method scale

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

Apply scaling to the this matrix by scaling the base axes by the given xyz.x , xyz.y and xyz.z factors, respectively and store the result in dest . If M is this matrix and S the scaling matrix, then the new matrix will

(Vec3 xyz, Mat4 dest)

Source from the content-addressed store, hash-verified

2116 * @return this
2117 */
2118 public Mat4 scale(Vec3 xyz, Mat4 dest) {
2119 return scale(xyz.x, xyz.y, xyz.z, dest);
2120 }
2121
2122 /**
2123 * Apply scaling to this matrix by scaling the base axes by the given <tt>xyz.x</tt>, <tt>xyz.y</tt> and <tt>xyz.z</tt> factors, respectively.

Callers 2

scaleMethod · 0.95
viewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected