#include <lefer.hpp>
◆ FlowField()
lefer::FlowField::FlowField |
( |
double ** |
flow_field, |
|
|
int |
field_width |
|
) |
| |
The constructor for FlowField class.
This constructor builds a wrapper object around a 2D grid of double values. i.e. a 2D array of double values. This 2D array of double values must be a heap-based (i.e. dinamically allocated) array.
Very important, this grid must be a square, meaning that, the height and width of the field must be the same.
- Parameters
-
flowfield | the 2D array of double values that defines the flow field. |
field_width | the width of the field. |
◆ get_angle()
double lefer::FlowField::get_angle |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
◆ get_field_width()
int lefer::FlowField::get_field_width |
( |
| ) |
|
◆ get_flow_field_col()
int lefer::FlowField::get_flow_field_col |
( |
double |
x | ) |
|
◆ get_flow_field_row()
int lefer::FlowField::get_flow_field_row |
( |
double |
y | ) |
|
◆ off_boundaries()
bool lefer::FlowField::off_boundaries |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
The documentation for this class was generated from the following files: