assert base_radius assert isnan step_dx assert isnan step_dy float dx

1
2
3
4
5
6
assert(base_radius!=0.0);
assert(!isnan(step_dx));
assert(!isnan(step_dy));
float dx = step_dx / base_radius;
float dy = step_dy / base_radius;
assert(!isnan(dx) && !isnan(dy));