MCPcopy Create free account
hub / github.com/arrayfire/forge / generateCurve

Function generateCurve

examples/cpu/plot3.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using namespace std;
28
29void generateCurve(float t, float dx, std::vector<float> &vec )
30{
31 vec.clear();
32 for (int i=0; i < (int)ZSIZE; ++i) {
33 float z = ZMIN + i*dx;
34 vec.push_back((float)(cos(z*t+t)/z));
35 vec.push_back((float)(sin(z*t+t)/z));
36 vec.push_back((float)(z+0.1*sin(t)));
37 }
38}
39
40int main(void)
41{

Callers 1

mainFunction · 0.85

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected