37 #include "../common/WColor.h"
38 #include "../common/WAssert.h"
39 #include "../common/math/linearAlgebra/WLinearAlgebra.h"
67 osg::ref_ptr< osg::Vec3Array >
osgVec3Array(
const std::vector< WPosition >& posArray );
77 osg::Vec3
unprojectFromScreen(
const osg::Vec3 screen, osg::ref_ptr< osg::Camera > camera );
88 osg::Vec4
unprojectFromScreen(
const osg::Vec4 screen, osg::ref_ptr< osg::Camera > camera );
118 WPosition direction( normalize( pos2 - pos1 ) );
119 return WColor( std::abs( direction[0] ), std::abs( direction[1] ), std::abs( direction[2] ), 1.0f );