Go to the source code of this file.
|
| BALL |
| -*- Mode: C++; tab-width: 2; -*-
|
|
Value:{ \
vec = from.getCoordinates(from.getClosestIndex(
Vector2(act_cell_x, act_cell_y)));\
d1 = from[act_cell_x + act_cell_y*(number_of_cells_x+1)];\
d2 = from[act_cell_x + 1 + act_cell_y*(number_of_cells_x+1)];\
vec2 = from.getCoordinates(from.getClosestIndex(
Vector2(act_cell_x + 1, act_cell_y + 1)));\
slope = (d2 - d1) / (vec2.x - vec.x);\
vec.x += (threshold - d1)/slope;\
data_.push_back(vec);\
}
TVector2< float > Vector2
Definition at line 22 of file contourLine.h.
Value:{ \
vec = from.getCoordinates(from.getClosestIndex(
Vector2(act_cell_x, act_cell_y)));\
d1 = from[act_cell_x + act_cell_y*(number_of_cells_x+1)];\
d2 = from[act_cell_x + (act_cell_y+1)*(number_of_cells_x+1)];\
vec2 = from.getCoordinates(from.getClosestIndex(
Vector2(act_cell_x, act_cell_y+1)));\
slope = (d2 - d1) / (vec2.y - vec.y);\
vec.y += (threshold - d1)/slope;\
data_.push_back(vec);\
}
TVector2< float > Vector2
Definition at line 32 of file contourLine.h.
Value:{ \
vec = from.getCoordinates(from.getClosestIndex(
Vector2(act_cell_x+1, act_cell_y)));\
d1 = from[act_cell_x+1 + act_cell_y*(number_of_cells_x+1)];\
d2 = from[act_cell_x+1 + (act_cell_y+1)*(number_of_cells_x+1)];\
vec2 = from.getCoordinates(from.getClosestIndex(
Vector2(act_cell_x+1, act_cell_y+1)));\
slope = (d2 - d1) / (vec2.y - vec.y);\
vec.y += (threshold - d1)/slope;\
data_.push_back(vec);\
}
TVector2< float > Vector2
Definition at line 42 of file contourLine.h.
Value:{ \
vec = from.getCoordinates(from.getClosestIndex(
Vector2(act_cell_x+1, act_cell_y+1)));\
d1 = from[act_cell_x+1 + (act_cell_y+2)*(number_of_cells_x+1)];\
d2 = from[act_cell_x + (act_cell_y+1)*(number_of_cells_x+1)];\
vec2 = from.getCoordinates(from.getClosestIndex(
Vector2(act_cell_x, act_cell_y+1)));\
slope = (d2 - d1) / (vec2.x - vec.x);\
vec.x += (threshold - d1)/slope;\
data_.push_back(vec);\
}
TVector2< float > Vector2
Definition at line 53 of file contourLine.h.