#include <shader_map.h>
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. |
The Map_quad_distance functor is a concrete distance functor that defines the operator that returns the distance from an element (quadratic distance).
mi::shader_v3::Map_quad_distance< DIM >::Map_quad_distance | ( | const float * | point | ) | [inline] |
constructor.
point | is the search point |
float mi::shader_v3::Map_quad_distance< DIM >::operator() | ( | const Map_iterator_base * | element | ) | const [inline, virtual] |
returns the quadratic distance from an element.
element | is the current element |
Implements mi::shader_v3::Map_distance< DIM >.
References mi::shader_v3::Map_iterator_base::get_position(), and mi::shader_v3::Map_distance< DIM >::m_point.
Copyright © 1986-2010 by
mental images GmbH