[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ff3d-users] elements of vector
From: |
Stephane Del Pino |
Subject: |
Re: [ff3d-users] elements of vector |
Date: |
Mon, 12 Mar 2007 22:12:01 +0100 |
User-agent: |
KMail/1.9.5 |
Hello.
in fact, this is not something that should work into ff3d, but you can
turnaround it, using the function algebra.
----------8<-----------------
vector a = (1,2,3);
cout << x(a) << " " << y(a) << " " << z(a) << "\n";
----------8<-----------------
This is not beautiful, but it works. A better handling of vector would require
much more work which has not shown to be a priority yet...
You can replace x,y and z by any scalar function (R^3->R).
Note that you can play with it:
--------8<---------------
vector b = (y(a)+x(a),y(a)-x(a),z(a));
cout << b << "\n";
--------8<---------------
Best regards,
Stephane.