openscenegraph
|
Public Types | |
enum | { num_components = 4 } |
typedef float | value_type |
Public Attributes | |
value_type | _v [4] |
General purpose float quad. Uses include representation of color coordinates. No support yet added for float * Vec4f - is it necessary? Need to define a non-member non-friend operator* etc. Vec4f * float is okay
typedef float osg::Vec4f::value_type |
Data type of vector components.
|
inline |
Constructor that sets all components of the vector to zero
References _v.
Referenced by operator*(), operator+(), operator-(), and operator/().
|
inline |
|
inline |
|
inline |
References _v.
|
inline |
References _v.
|
inline |
References _v, and osg::clampTo().
|
inline |
References _v, and osg::clampTo().
|
inline |
References _v.
|
inline |
References _v.
|
inline |
References _v.
|
inline |
References _v.
|
inline |
Returns true if at least one component has value NaN.
References _v, and osg::isNaN().
Referenced by valid().
|
inline |
|
inline |
Length squared of the vector = vec . vec
References _v.
|
inline |
|
inline |
Dot product.
References _v.
|
inline |
|
inline |
Unary multiply by scalar.
References _v.
Unary vector add. Slightly more efficient because no temporary intermediate object.
References _v.
|
inline |
|
inline |
|
inline |
Unary divide by scalar.
References _v.
|
inline |
References _v.
|
inline |
References _v.
|
inline |
References _v.
|
inline |
References _v.
|
inline |
References _v.
|
inline |
References _v.
|
inline |
|
inline |
Returns true if all components have values that are not NaN.
References isNaN().
|
inline |
References _v.
Referenced by osgUtil::HighlightMapGenerator::compute_color(), osgParticle::Interpolator::interpolate(), osgTerrain::ValidDataOperator::operator()(), osg::Matrixd::postMult(), osg::Matrixf::postMult(), osg::Matrixd::preMult(), osg::Matrixf::preMult(), osg::Quat::Quat(), set(), osg::Quat::set(), osgUtil::CubeMapGenerator::set_pixel(), and Vec4f().
|
inline |
References _v.
|
inline |
References _v.
Referenced by osgParticle::Interpolator::interpolate(), osgTerrain::ValidDataOperator::operator()(), osg::Matrixd::postMult(), osg::Matrixf::postMult(), osg::Matrixd::preMult(), osg::Matrixf::preMult(), osg::Quat::Quat(), set(), osg::Quat::set(), osgUtil::CubeMapGenerator::set_pixel(), and Vec4f().
|
inline |
References _v.
|
inline |
References _v.
Referenced by osgParticle::Interpolator::interpolate(), osgTerrain::ValidDataOperator::operator()(), osg::Matrixd::postMult(), osg::Matrixf::postMult(), osg::Matrixd::preMult(), osg::Matrixf::preMult(), osg::Quat::Quat(), set(), osg::Quat::set(), osgUtil::CubeMapGenerator::set_pixel(), and Vec4f().
|
inline |
References _v.
|
inline |
References _v.
Referenced by osgParticle::Interpolator::interpolate(), osgTerrain::ValidDataOperator::operator()(), osg::Matrixd::postMult(), osg::Matrixf::postMult(), osg::Matrixd::preMult(), osg::Matrixf::preMult(), osg::Quat::Quat(), set(), osg::Quat::set(), osgUtil::CubeMapGenerator::set_pixel(), and Vec4f().
|
inline |
References _v.
value_type osg::Vec4f::_v[4] |
Vec member variable.
Referenced by a(), asABGR(), asRGBA(), b(), g(), isNaN(), length(), length2(), normalize(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), osg::operator<<(), operator==(), osg::operator>>(), operator[](), ptr(), r(), set(), osg::Vec4d::Vec4d(), Vec4f(), w(), x(), y(), and z().