MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / zoomIn

Method zoomIn

src/main/java/field/graphics/Camera.java:282–286  ·  view source on GitHub ↗
(float amount)

Source from the content-addressed store, hash-verified

280 return new Vec3(position.x + left.x * s, position.y + left.y * s, position.z + left.z * s);
281 }
282
283 public State zoomIn(float amount) {
284 State s = copy();
285 s.fov = Math.max(2, Math.min(179, s.fov + amount));
286 return s;
287 }
288
289 public State zoomOut(float amount) {

Callers 1

standardMapMethod · 0.80

Calls 3

copyMethod · 0.95
maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected