#include <shader_map.h>
Inheritance diagram for mi::shader_v3::Map_distance< DIM >:
Public Member Functions | |
Map_distance () | |
empty constructor. | |
Map_distance (const float *point) | |
constructor. | |
const miUint | get_dimension () const |
returns the dimension of the functor. | |
const float * | get_point () const |
returns the search point. | |
float | operator() (const float *min, const float *max) const |
returns the quadratic distance from a bounding box. | |
virtual float | operator() (const Map_iterator_base *element) const =0 |
returns the quadratic distance from an element. | |
Static Public Attributes | |
const miUint | DIMENSION = DIM |
DIMENSION of the distance functor, same of the map. | |
Protected Attributes | |
float | m_point [DIM] |
m_point is the search point |
|
constructor.
|
|
returns the dimension of the functor.
Implements mi::shader_v3::Map_distance_base. |
|
returns the search point.
Implements mi::shader_v3::Map_distance_base. |
|
returns the quadratic distance from an element.
Implements mi::shader_v3::Map_distance_base. Implemented in mi::shader_v3::Map_quad_distance< DIM >. |
|
returns the quadratic distance from a bounding box.
Implements mi::shader_v3::Map_distance_base. |
Copyright © 1986-2009 by
mental images GmbH