summaryrefslogtreecommitdiff
path: root/graphics.c
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2026-03-17 20:51:56 +0200
committerSyndamia <kamen@syndamia.com>2026-03-17 20:51:56 +0200
commitdb7a127a32441a31e1401dd2814df1b9a1a911c1 (patch)
tree38716de7433185da1dc52d6993d8f955efba47fb /graphics.c
parent56099072165578b505a6c81e187cf392b9bd5a2e (diff)
downloadppm_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.c18
1 files changed, 0 insertions, 18 deletions
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,
};