31 #include <boost/lexical_cast.hpp>
38 #include "../common/WColor.h"
39 #include "../common/WAssert.h"
40 #include "../common/math/linearAlgebra/WLinearAlgebra.h"
42 #include "WExportWGE.h"
63 osg::ref_ptr< osg::Vec3Array > WGE_EXPORT
osgVec3Array(
const std::vector< WPosition >& posArray );
73 osg::Vec3 WGE_EXPORT
unprojectFromScreen(
const osg::Vec3 screen, osg::ref_ptr< osg::Camera > camera );
103 WPosition direction( normalize( pos2 - pos1 ) );
104 return WColor( std::abs( direction[0] ), std::abs( direction[1] ), std::abs( direction[2] ), 1.0f );