[units] spatial coordinates, vectors, x, y, z, something like that

Hi, I want to use boost::units to calculate diffraction & interference patterns and wave propagation in 3D. I need some way to represent points in spatial 3D space with 'length' dimension. What do you guys use for that? I need them to work with 'frequency' & 'speed' dimensions also. Don't tell me that I need to write my own 'vector' class ? best regards -- Janek Kozicki http://janek.kozicki.pl/ |

On 4 November 2011 15:28, Janek Kozicki <janek_listy@wp.pl> wrote:
I want to use boost::units to calculate diffraction & interference patterns and wave propagation in 3D.
I need some way to represent points in spatial 3D space with 'length' dimension. What do you guys use for that? I need them to work with 'frequency' & 'speed' dimensions also.
Don't tell me that I need to write my own 'vector' class ?
boost::array<YourCoordianteType, 4> p; boost::tuple<YourCoordianteType, YourCoordianteType, YourCoordianteType, YourCoordianteType> p; boost::geometry::model::point<YourCoordianteType, 4, boost::geometry::cs::cartesian> p; Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org

thanks. I'll try this :) Mateusz Łoskot said: (by the date of Fri, 4 Nov 2011 15:34:58 +0000)
On 4 November 2011 15:28, Janek Kozicki <janek_listy@wp.pl> wrote:
I want to use boost::units to calculate diffraction & interference patterns and wave propagation in 3D.
I need some way to represent points in spatial 3D space with 'length' dimension. What do you guys use for that? I need them to work with 'frequency' & 'speed' dimensions also.
Don't tell me that I need to write my own 'vector' class ?
boost::array<YourCoordianteType, 4> p; boost::tuple<YourCoordianteType, YourCoordianteType, YourCoordianteType, YourCoordianteType> p; boost::geometry::model::point<YourCoordianteType, 4, boost::geometry::cs::cartesian> p;
Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org Member of ACCU, http://accu.org
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Janek Kozicki http://janek.kozicki.pl/ |
participants (2)
-
Janek Kozicki
-
Mateusz Łoskot