mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-17 23:46:07 +00:00
Inline redundant variable
This commit is contained in:
parent
523e36a212
commit
63448f4469
@ -15,10 +15,9 @@ impl Rotation {
|
||||
|
||||
// the model rotates not the camera, so invert the transform
|
||||
let camera_rotation = camera.rotation.inverse();
|
||||
let right_vector = camera_rotation.right();
|
||||
let up_vector = up_vector(&camera_rotation);
|
||||
|
||||
let rotation = Transform::rotation(right_vector * angle_x)
|
||||
let rotation = Transform::rotation(camera_rotation.right() * angle_x)
|
||||
* Transform::rotation(up_vector * angle_y);
|
||||
|
||||
let transform = camera.camera_to_model()
|
||||
|
Loading…
x
Reference in New Issue
Block a user