MCPcopy Create free account
hub / github.com/Neop/mudmap2 / getCenterY

Method getCenterY

src/main/java/mudmap2/backend/Layer.java:143–146  ·  view source on GitHub ↗

Gets the center y coordinate (estimation) @return

()

Source from the content-addressed store, hash-verified

141 * @return
142 */
143 public int getCenterY(){
144 updateSizeCache();
145 return (maxY + minY) / 2;
146 }
147
148 /**
149 * Gets the exact center

Callers 3

testGetCenterYMethod · 0.95
layerSelectedMethod · 0.80
writeFileMethod · 0.80

Calls 1

updateSizeCacheMethod · 0.95

Tested by 1

testGetCenterYMethod · 0.76