For example, the following now works:
double a1[3] = {1.0, 3.0, 2.0}, a2[3];
Vector3d::wrapArray(a2) = 2 * Vector3d::fromArray(a1);
cout << Vector3d::fromArray(a2) << endl; // output: 2,6,4
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| example.cpp | ||
| tutorial.cpp | ||