Minor fixes for example inputs

This commit is contained in:
Alex Hirsch
2019-01-07 13:24:22 +01:00
parent 2e5a0dbdcc
commit 9a84902011
9 changed files with 73 additions and 80 deletions

View File

@@ -1,18 +1,14 @@
float transform_x(float x)
{
float fx;
fx = x;
return (-2.0) + ((1.0) - (-2.0)) * (fx / 80.0);
}
float transform_y(float y)
{
float fy;
fy = y;
return ((1.0) - ((1.0) - (-1.0)) * (fy / 50.0)) * 2.0;
}