mi::shader_v3::Map_quad_distance< DIM > Class Template Reference

Map_quad_distance class. The Map_quad_distance functor is a concrete distance functor that defines the operator that returns the distance from an element (quadratic distance). More...

#include <shader_map.h>

Inheritance diagram for mi::shader_v3::Map_quad_distance< DIM >:

mi::shader_v3::Map_distance< DIM > mi::shader_v3::Map_distance_base List of all members.

Public Member Functions

 Map_quad_distance (const float *point)
 constructor.
float operator() (const Map_iterator_base *element) const
 returns the quadratic distance from an element.

Detailed Description

template<miUint DIM>
class mi::shader_v3::Map_quad_distance< DIM >

Map_quad_distance class. The Map_quad_distance functor is a concrete distance functor that defines the operator that returns the distance from an element (quadratic distance).


Constructor & Destructor Documentation

template<miUint DIM>
mi::shader_v3::Map_quad_distance< DIM >::Map_quad_distance const float *  point  )  [inline]
 

constructor.

Parameters:
point is the search point


Member Function Documentation

template<miUint DIM>
float mi::shader_v3::Map_quad_distance< DIM >::operator() const Map_iterator_base element  )  const [inline, virtual]
 

returns the quadratic distance from an element.

Parameters:
element is the current element
Returns:
the quadratic distance from the element

Implements mi::shader_v3::Map_distance< DIM >.

Copyright © 1986-2009 by mental images GmbH