osgEarth 2.1.1
Public Member Functions | Public Attributes

anonymous_namespace{NodeUtils.cpp}::ComputeMaxRadius2 Struct Reference

List of all members.

Public Member Functions

void set (const osg::Vec3 &center, float *maxRadius2)
void operator() (const osg::Vec3 &v1, bool)
void operator() (const osg::Vec3 &v1, const osg::Vec3 &v2, bool)
void operator() (const osg::Vec3 &v1, const osg::Vec3 &v2, const osg::Vec3 &v3, bool)
void operator() (const osg::Vec3 &v1, const osg::Vec3 &v2, const osg::Vec3 &v3, const osg::Vec3 &v4, bool)
void compute (const osg::Vec3 &v)

Public Attributes

osg::Vec3 _center
float * _maxRadius2

Detailed Description

Definition at line 86 of file NodeUtils.cpp.


Member Function Documentation

void anonymous_namespace{NodeUtils.cpp}::ComputeMaxRadius2::compute ( const osg::Vec3 &  v) [inline]

Definition at line 120 of file NodeUtils.cpp.

        {
            float dist = (v - _center).length2();
            if ( dist > *_maxRadius2 )
                *_maxRadius2 = dist;
        }
void anonymous_namespace{NodeUtils.cpp}::ComputeMaxRadius2::operator() ( const osg::Vec3 &  v1,
const osg::Vec3 &  v2,
bool   
) [inline]

Definition at line 99 of file NodeUtils.cpp.

        {            
            compute( v1 );
            compute( v2 );
        }
void anonymous_namespace{NodeUtils.cpp}::ComputeMaxRadius2::operator() ( const osg::Vec3 &  v1,
const osg::Vec3 &  v2,
const osg::Vec3 &  v3,
const osg::Vec3 &  v4,
bool   
) [inline]

Definition at line 112 of file NodeUtils.cpp.

        {            
            compute( v1 );
            compute( v2 );
            compute( v3 );
            compute( v4 );
        }
void anonymous_namespace{NodeUtils.cpp}::ComputeMaxRadius2::operator() ( const osg::Vec3 &  v1,
const osg::Vec3 &  v2,
const osg::Vec3 &  v3,
bool   
) [inline]

Definition at line 105 of file NodeUtils.cpp.

        {            
            compute( v1 );
            compute( v2 );
            compute( v3 );
        }        
void anonymous_namespace{NodeUtils.cpp}::ComputeMaxRadius2::operator() ( const osg::Vec3 &  v1,
bool   
) [inline]

Definition at line 94 of file NodeUtils.cpp.

        {            
            compute( v1 );
        }
void anonymous_namespace{NodeUtils.cpp}::ComputeMaxRadius2::set ( const osg::Vec3 &  center,
float *  maxRadius2 
) [inline]

Definition at line 88 of file NodeUtils.cpp.

        {
            _center = center;
            _maxRadius2 = maxRadius2;
        }

Member Data Documentation

osg::Vec3 anonymous_namespace{NodeUtils.cpp}::ComputeMaxRadius2::_center

Definition at line 129 of file NodeUtils.cpp.

float* anonymous_namespace{NodeUtils.cpp}::ComputeMaxRadius2::_maxRadius2

Definition at line 130 of file NodeUtils.cpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines