mirror of
https://github.com/hannobraun/Fornjot
synced 2025-07-18 16:06:10 +00:00
Update name of function
This commit is contained in:
parent
c12e7dfd5e
commit
3ac63e6d5a
@ -16,7 +16,12 @@ impl InputHandler {
|
|||||||
) {
|
) {
|
||||||
match event {
|
match event {
|
||||||
InputEvent::Translation { previous, current } => {
|
InputEvent::Translation { previous, current } => {
|
||||||
movement::apply(previous, current, focus_point, camera);
|
movement::apply_translation(
|
||||||
|
previous,
|
||||||
|
current,
|
||||||
|
focus_point,
|
||||||
|
camera,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
InputEvent::Rotation { angle_x, angle_y } => {
|
InputEvent::Rotation { angle_x, angle_y } => {
|
||||||
Rotation::apply(angle_x, angle_y, focus_point, camera);
|
Rotation::apply(angle_x, angle_y, focus_point, camera);
|
||||||
|
@ -5,7 +5,7 @@ use crate::{
|
|||||||
screen::NormalizedScreenPosition,
|
screen::NormalizedScreenPosition,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn apply(
|
pub fn apply_translation(
|
||||||
previous: NormalizedScreenPosition,
|
previous: NormalizedScreenPosition,
|
||||||
current: NormalizedScreenPosition,
|
current: NormalizedScreenPosition,
|
||||||
focus_point: FocusPoint,
|
focus_point: FocusPoint,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user