diff options
author | 2007-10-14 14:45:31 +0000 | |
---|---|---|
committer | 2007-10-14 14:45:31 +0000 | |
commit | a94a8c68e8d66fa2b06e37f3a47f1b7e1ddfa1bc (patch) | |
tree | 40edc0947b2dfe87181c4b62c0ba00e925a9f1b4 /test/main.h | |
parent | 3f979187600897221c7e807373eb267af4db1ada (diff) |
add fromArray() and wrapArray().
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
Diffstat (limited to 'test/main.h')
0 files changed, 0 insertions, 0 deletions