Update name of function

This commit is contained in:
Hanno Braun 2024-11-14 17:31:26 +01:00
parent c12e7dfd5e
commit 3ac63e6d5a
2 changed files with 7 additions and 2 deletions

View File

@ -16,7 +16,12 @@ impl InputHandler {
) {
match event {
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 } => {
Rotation::apply(angle_x, angle_y, focus_point, camera);

View File

@ -5,7 +5,7 @@ use crate::{
screen::NormalizedScreenPosition,
};
pub fn apply(
pub fn apply_translation(
previous: NormalizedScreenPosition,
current: NormalizedScreenPosition,
focus_point: FocusPoint,