#include <cstdio>
#include <math.h>
static const int ITERATIONS = 200;
static const float PRECISION = 1.0f/ITERATIONS;
int main(int argc, char *argv[])
{
try {
af::Window myWindow(800, 800,
"3D Line Plot example: ArrayFire");
static float t=0.1;
do{
X =
max(
min(X, bounds),-bounds);
Y =
max(
min(Y, bounds),-bounds);
t+=0.01;
}
while(!myWindow.
close());
fprintf(stderr,
"%s\n", e.
what());
throw;
}
#ifdef WIN32 // pause in Windows
if (!(argc == 2 && argv[1][0] == '-')) {
printf("hit [enter]...");
fflush(stdout);
getchar();
}
#endif
return 0;
}