edu.jhu.cs.cisst.algorithms.optimize.fmg
Interface Stencil

All Known Implementing Classes:
StencilImpl

public interface Stencil

A Stencil contains 27 doubles and can be used to represent the relationship between a grid element and its 26 nearest neighbours in 3D. Positions are identified by integer indices relative to the central element, which consequently has the position (0,0,0).

Author:
Gerald Loeffler (Gerald.Loeffler@univie.ac.at)

Method Summary
 double get(int x, int y, int z)
          gets the element at the specified position.
 

Method Detail

get

double get(int x,
           int y,
           int z)
gets the element at the specified position.

Parameters:
x - the index in the x-direction of the desired element (-1 <= x <= 1)
y - the index in the y-direction of the desired element (-1 <= y <= 1)
z - the index in the z-direction of the desired element (-1 <= z <= 1)
Returns:
the element at the specified position