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

Method offset

common/buildcraft/lib/misc/VecUtil.java:20–22  ·  view source on GitHub ↗
(Vec3d from, EnumFacing direction, double by)

Source from the content-addressed store, hash-verified

18 }
19
20 public static Vec3d offset(Vec3d from, EnumFacing direction, double by) {
21 return from.addVector(direction.getFrontOffsetX() * by, direction.getFrontOffsetY() * by, direction.getFrontOffsetZ() * by);
22 }
23
24 public static double dot(Vec3d a, Vec3d b) {
25 return a.xCoord * b.xCoord + a.yCoord * b.yCoord + a.zCoord * b.zCoord;

Callers 2

getRenderPositionMethod · 0.95
renderTileEntityAtMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected