MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / crossProduct

Method crossProduct

src/main/java/net/minecraft/util/Vec3i.java:85–88  ·  view source on GitHub ↗

Calculate the cross product of this and the given Vector

(Vec3i vec)

Source from the content-addressed store, hash-verified

83 * Calculate the cross product of this and the given Vector
84 */
85 public Vec3i crossProduct(Vec3i vec)
86 {
87 return new Vec3i(this.getY() * vec.getZ() - this.getZ() * vec.getY(), this.getZ() * vec.getX() - this.getX() * vec.getZ(), this.getX() * vec.getY() - this.getY() * vec.getX());
88 }
89
90 /**
91 * Calculate squared distance to the given coordinates

Callers 1

translateOffsetMethod · 0.95

Calls 6

getYMethod · 0.95
getZMethod · 0.95
getXMethod · 0.95
getZMethod · 0.65
getYMethod · 0.65
getXMethod · 0.65

Tested by

no test coverage detected