public

Inheritance Graph

graph BT
	_DistanceCompare
	click _DistanceCompare "classMinSG_1_1__DistanceCompare"

Description

Public Functions

   
   
  _DistanceCompare( Geometry::Vec3 _referencePosition)
(ctor)
   
  _DistanceCompare(const _DistanceCompare & other)
(ctor)
   
bool operator()(const T * a, const T * b) const

Documentation

function
MinSG::_DistanceCompare::_DistanceCompare

public inline
     
     
_DistanceCompare( Geometry::Vec3 _referencePosition )

(ctor)

Defined in MinSG/Helper/DistanceSorting.h:81


function
MinSG::_DistanceCompare::_DistanceCompare

public inline
     
     
_DistanceCompare( const _DistanceCompare & other )

(ctor)

Defined in MinSG/Helper/DistanceSorting.h:86


function
MinSG::_DistanceCompare::operator()

public const inline
     
     
bool operator()( const T * a,
  const T * b
) const    

Parameters

a
first object
b
second object

Returns

true if the first object is closer (if order == BACK_TO_FRONT) to the reference position than the second if the objects have equal distance to the reference position the pointers of the objects are compared

See also: float Geometry::Box::getDistanceSquared(position)

Defined in MinSG/Helper/DistanceSorting.h:100