On Monday 04 July 2011 08:38:26 John Wojnaroski wrote:
> toOsg

Converts SG Vectors to OSG Vectors

simgear/simgear/math/SGVec2.hxx
simgear/simgear/math/SGVec3.hxx
simgear/simgear/math/SGVec4.hxx


toOsg(const SGVec2d& v)
{ return osg::Vec2d(v[0], v[1]); }
--
toOsg(const SGVec2f& v)
{ return osg::Vec2f(v[0], v[1]); }
--
toOsg(const SGVec3d& v)
{ return osg::Vec3d(v[0], v[1], v[2]); }
--
toOsg(const SGVec3f& v)
{ return osg::Vec3f(v[0], v[1], v[2]); }
--
toOsg(const SGVec4d& v)
{ return osg::Vec4d(v[0], v[1], v[2], v[3]); }
--
toOsg(const SGVec4f& v)
{ return osg::Vec4f(v[0], v[1], v[2], v[3]); }

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to