MCPcopy Create free account
hub / github.com/Garten/sourcecraft / getMean

Method getMean

src/minecraft/Position.java:139–145  ·  view source on GitHub ↗
(Position one, Position two)

Source from the content-addressed store, hash-verified

137 }
138
139 public static Position getMean(Position one, Position two) {
140 Position result = new Position();
141 result.setX((one.getX() + two.getX()) / 2);
142 result.setY((one.getY() + two.getY()) / 2);
143 result.setZ((one.getZ() + two.getZ()) / 2);
144 return result;
145 }
146
147 // return if order changed
148 public static boolean bringInOrder(Position start, Position end) {

Callers 1

addSpawnPointMethod · 0.95

Calls 6

setXMethod · 0.95
setYMethod · 0.95
setZMethod · 0.95
getYMethod · 0.80
getXMethod · 0.45
getZMethod · 0.45

Tested by

no test coverage detected