MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / makeTranslation

Method makeTranslation

common/buildcraft/lib/misc/Matrix4i.java:16–24  ·  view source on GitHub ↗
(Vec3i vec)

Source from the content-addressed store, hash-verified

14 private final int m30, m31, m32, m33;
15
16 public static Matrix4i makeTranslation(Vec3i vec) {
17 // @formatter:off
18 return new Matrix4i(
19 1, 0, 0, vec.getX(),
20 0, 1, 0, vec.getY(),
21 0, 0, 1, vec.getZ(),
22 0, 0, 0, 1);
23 // @formatter:on
24 }
25
26 public static Matrix4i makeScale(Vec3i vec) {
27 // @formatter:off

Callers 3

testMakeTranslationMethod · 0.95
addTranslationMethod · 0.95

Calls 3

getXMethod · 0.65
getYMethod · 0.65
getZMethod · 0.45

Tested by 1

testMakeTranslationMethod · 0.76