Boost logo

Boost :

Subject: Re: [boost] [units] spatial coordinates, vectors, x, y, z, something like that
From: Mateusz Łoskot (mateusz_at_[hidden])
Date: 2011-11-04 11:34:58


On 4 November 2011 15:28, Janek Kozicki <janek_listy_at_[hidden]> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk