diff options
| author | Syndamia <kamen@syndamia.com> | 2026-03-17 20:51:56 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2026-03-17 20:51:56 +0200 |
| commit | db7a127a32441a31e1401dd2814df1b9a1a911c1 (patch) | |
| tree | 38716de7433185da1dc52d6993d8f955efba47fb /graphics.c | |
| parent | 56099072165578b505a6c81e187cf392b9bd5a2e (diff) | |
| download | ppm_graphics-db7a127a32441a31e1401dd2814df1b9a1a911c1.tar ppm_graphics-db7a127a32441a31e1401dd2814df1b9a1a911c1.tar.gz ppm_graphics-db7a127a32441a31e1401dd2814df1b9a1a911c1.zip | |
failed implementationinterpolation_without_temp
Since most values are integers, the rounding (any rounding) causes
misalignment with true linearity
Diffstat (limited to 'graphics.c')
| -rw-r--r-- | graphics.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -104,46 +104,28 @@ main() { /* Movement */ - struct AM_Linear temp1; struct A_Interpolate childNode_moveToLeft = { - .initialValueTemp = &temp1, .initialValueTempSize = sizeof(temp1), - .interpolate = AM_LinearInterpolate, .value = &childNode, .goalValue = &childNode_left, }; - struct AM_Spin temp11; struct A_Interpolate segment_spin_moveToLeft = { - .initialValueTemp = &temp11, .initialValueTempSize = sizeof(temp11), - .interpolate = AM_SpinInterpolate, .value = &link_spin, .goalValue = &link_spin_left, }; - struct AM_Linear temp12; struct A_Interpolate segment_translate_moveToLeft = { - .initialValueTemp = &temp12, .initialValueTempSize = sizeof(temp12), - .interpolate = AM_LinearInterpolate, .value = &link_translate, .goalValue = &link_translate_left, }; - struct AM_Linear temp2; struct A_Interpolate childNode_moveToRight = { - .initialValueTemp = &temp2, .initialValueTempSize = sizeof(temp2), - .interpolate = AM_LinearInterpolate, .value = &childNode, .goalValue = &childNode_right, }; - struct AM_Spin temp21; struct A_Interpolate segment_spin_moveToRight = { - .initialValueTemp = &temp21, .initialValueTempSize = sizeof(temp21), - .interpolate = AM_SpinInterpolate, .value = &link_spin, .goalValue = &link_spin_right, }; - struct AM_Linear temp22; struct A_Interpolate segment_translate_moveToRight = { - .initialValueTemp = &temp22, .initialValueTempSize = sizeof(temp22), - .interpolate = AM_LinearInterpolate, .value = &link_translate, .goalValue = &link_translate_right, }; |
