Boost logo

Boost :

Subject: Re: [boost] [units] spatial coordinates, vectors, x, y, z, something like that
From: Janek Kozicki (janek_listy_at_[hidden])
Date: 2011-11-06 06:58:23


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_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
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>

-- 
Janek Kozicki                               http://janek.kozicki.pl/  |

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