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

Method multiply

common/buildcraft/lib/misc/MatrixUtil.java:74–80  ·  view source on GitHub ↗
(AxisAlignedBB box, Matrix4f matrix)

Source from the content-addressed store, hash-verified

72 }
73
74 public static AxisAlignedBB multiply(AxisAlignedBB box, Matrix4f matrix) {
75 Point3f min = new Point3f(new Point3d(box.minX, box.minY, box.minZ));
76 Point3f max = new Point3f(new Point3d(box.maxX, box.maxY, box.maxZ));
77 matrix.transform(min);
78 matrix.transform(max);
79 return new AxisAlignedBB(min.x, min.y, min.z, max.x, max.y, max.z);
80 }
81
82 public static AxisAlignedBB[] multiplyAll(AxisAlignedBB[] boxes, Matrix4f matrix) {
83 AxisAlignedBB[] result = new AxisAlignedBB[boxes.length];

Callers 1

multiplyAllMethod · 0.95

Calls 1

transformMethod · 0.45

Tested by

no test coverage detected