The template parameter StreamLinesTraits_2 has to be
instantiated by a model of the concept StreamLinesTraits_2.
This class provides a 2D vector field specified by a set of sample
points defined on a regular grid, with a bilinear interpolation scheme
over its cells (i.e. for each point p in a cell c, the
vector value is interpolated from the vertices of c).
|
| the scalar type. |
| ||
| the point type. | |
| ||
| the vector type. |
| |
Generate a regular grid rgrid whose size is x_size by y_size, while x_samples and
y_samples specify the number of samples on x and y.
|
In addition to the minimum interface required by the concept definition, the class Regular_grid_2<StreamLinesTraits_2> provides the following function to fill the vector field with the user data.
|
| |
Attribute the vector v to the position (i,j) on the regular grid. |
|
| returns the dimension of the grid. |
|
| returns the size of the grid. |