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

Method translateLeft

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

Source from the content-addressed store, hash-verified

220 }
221
222
223 public State translateLeft(float r) {
224 State s = copy();
225 Vec3 left = left();
226 left = left.normalize();
227 left.mul((float) position.distance(target));
228 s.position.x += left.x * r;
229 s.position.y += left.y * r;
230 s.position.z += left.z * r;
231 s.target.x += left.x * r;
232 s.target.y += left.y * r;
233 s.target.z += left.z * r;
234 return s;
235 }
236
237 public State translateIn(float r) {

Callers

nothing calls this directly

Calls 5

copyMethod · 0.95
leftMethod · 0.95
normalizeMethod · 0.95
mulMethod · 0.95
distanceMethod · 0.45

Tested by

no test coverage detected