diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-22 13:48:51 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-22 13:49:24 +0200 |
commit | b686557e64f418aabe2d4d719e71277807c49afc (patch) | |
tree | 78dcff0d5c32f3c2802b7c3a131859f004c278be /ftnoir_filter_accela | |
parent | adcd6ccc5ccbaa4a40cd9ca3544c5269a9250629 (diff) |
whitespace only
Diffstat (limited to 'ftnoir_filter_accela')
-rw-r--r-- | ftnoir_filter_accela/ftnoir_filter_accela.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ftnoir_filter_accela/ftnoir_filter_accela.cpp b/ftnoir_filter_accela/ftnoir_filter_accela.cpp index 85b8856d..639e2e45 100644 --- a/ftnoir_filter_accela/ftnoir_filter_accela.cpp +++ b/ftnoir_filter_accela/ftnoir_filter_accela.cpp @@ -26,8 +26,8 @@ static inline double parabola(const double a, const double x, const double dz, c void FTNoIR_Filter::filter(const double* target_camera_position, double *new_camera_position) { - if (first_run) - { + if (first_run) + { for (int i = 0; i < 6; i++) { new_camera_position[i] = target_camera_position[i]; @@ -36,15 +36,15 @@ void FTNoIR_Filter::filter(const double* target_camera_position, } first_run = false; - return; - } + return; + } for (int i=0;i<6;i++) - { + { const double vec = target_camera_position[i] - last_output[0][i]; const double vec2 = target_camera_position[i] - last_output[1][i]; const double vec3 = target_camera_position[i] - last_output[2][i]; - const int sign = vec < 0 ? -1 : 1; + const int sign = vec < 0 ? -1 : 1; const double a = i >= 3 ? s.rotation_alpha : s.translation_alpha; const double a2 = a * s.second_order_alpha; const double a3 = a * s.third_order_alpha; @@ -58,7 +58,7 @@ void FTNoIR_Filter::filter(const double* target_camera_position, last_output[2][i] = last_output[1][i]; last_output[1][i] = last_output[0][i]; last_output[0][i] = new_camera_position[i] = done ? target_camera_position[i] : result; - } + } } extern "C" OPENTRACK_EXPORT IFilter* GetConstructor() |