From db7a127a32441a31e1401dd2814df1b9a1a911c1 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 17 Mar 2026 20:51:56 +0200 Subject: failed implementation Since most values are integers, the rounding (any rounding) causes misalignment with true linearity --- graphics.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'graphics.c') diff --git a/graphics.c b/graphics.c index 4ac5055..10d374b 100644 --- a/graphics.c +++ b/graphics.c @@ -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, }; -- cgit v1.2.3