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

Method dollyIn

src/main/java/field/graphics/Camera.java:250–259  ·  view source on GitHub ↗
(float r)

Source from the content-addressed store, hash-verified

248 return s;
249 }
250
251 public State dollyIn(float r) {
252 State s = copy();
253 Vec3 left = ray();
254 left = left.normalize();
255 left.mul((float) position.distance(target));
256 s.position.x += left.x * r;
257 s.position.y += left.y * r;
258 s.position.z += left.z * r;
259 return s;
260 }
261
262 public State translateUp(float r) {

Callers 1

standardMapMethod · 0.45

Calls 5

copyMethod · 0.95
rayMethod · 0.95
normalizeMethod · 0.95
mulMethod · 0.95
distanceMethod · 0.45

Tested by

no test coverage detected