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

Method getCenterX

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

Gets the center x coordinate (estimation) @return

()

Source from the content-addressed store, hash-verified

132 * @return
133 */
134 public int getCenterX(){
135 updateSizeCache();
136 return (maxX + minX) / 2;
137 }
138
139 /**
140 * Gets the center y coordinate (estimation)

Callers 3

testGetCenterXMethod · 0.95
layerSelectedMethod · 0.80
writeFileMethod · 0.80

Calls 1

updateSizeCacheMethod · 0.95

Tested by 1

testGetCenterXMethod · 0.76