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

Method orbitUp

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

Source from the content-addressed store, hash-verified

189 return s;
190 }
191
192 public State orbitUp(float r) {
193 State s = copy();
194 Quat q = new Quat().fromAxisAngleRad(left(), r);
195 s.position = Vec3.add(target, q.transform(ray().mul(-1)), new Vec3());
196 s.up = q.transform(up);
197 return s;
198 }
199
200 public State roll(float r) {

Callers 1

standardMapMethod · 0.45

Calls 7

copyMethod · 0.95
leftMethod · 0.95
addMethod · 0.95
transformMethod · 0.95
rayMethod · 0.95
fromAxisAngleRadMethod · 0.80
mulMethod · 0.45

Tested by

no test coverage detected