#include <rcsc/geom/vector_2d.h>
ネームスペース | |
namespace | rcsc |
関数 | |
double | rcsc::kick_rate (const double &dist, const double &dir_diff, const double &kprate, const double &bsize, const double &psize, const double &kmargin) |
calculate kick rate | |
double | rcsc::effective_turn (const double &turn_moment, const double &speed, const double &inertiamoment) |
calculate effective turn moment. it may be useful to redefine this algorighm in movement action module | |
double | rcsc::final_speed (const double &dash_power, const double &dprate, const double &effort, const double &decay) |
calculate converged max speed, when using "dash_power" | |
bool | rcsc::can_over_speed_max (const double &dash_power, const double &dprate, const double &effort, const double &decay, const double &speed_max) |
check if player's poteantial max speed is over plsyer_speed_max parameter. | |
Vector2D | rcsc::inertia_n_step_travel (const Vector2D &initial_vel, const int n_step, const double &decay) |
estimate future travel after n steps only by inertia. No additional acceleration. | |
Vector2D | rcsc::inertia_n_step_point (const Vector2D &initial_pos, const Vector2D &initial_vel, const int n_step, const double &decay) |
estimate future point after n steps only by inertia. No additional acceleration | |
double | rcsc::inertia_n_step_distance (const double &initial_speed, const int n_step, const double &decay) |
estimate travel distance only by inertia. No additional acceleration | |
double | rcsc::inertia_n_step_distance (const double &initial_speed, const double &n_step_real, const double &decay) |
estimate travel distance only by inertia. No additional accel | |
Vector2D | rcsc::inertia_final_travel (const Vector2D &initial_vel, const double &decay) |
calculate total travel only by inertia movement. | |
Vector2D | rcsc::inertia_final_point (const Vector2D &initial_pos, const Vector2D &initial_vel, const double &decay) |
calculate final reach point only by inertia. | |
double | rcsc::inertia_final_distance (const double &initial_speed, const double &decay) |
calculate total travel distance only by inertia. | |
double | rcsc::quantize (const double &value, const double &qstep) |
quantize a floating point number | |
double | rcsc::quantize_dist (const double &unq_dist, const double &qstep) |
calculate quantized distance value about dist quantization | |
double | rcsc::unquantize_min (const double &dist, const double &qstep) |
calculate minnimal value by inverse quantize function | |
double | rcsc::unquantize_max (const double &dist, const double &qstep) |
calculate maximal value by inverse quantize function | |
Vector2D | rcsc::wind_effect (const double &speed, const double &weight, const double &wind_force, const double &wind_dir, const double &wind_weight, const double &wind_rand, Vector2D *wind_error) |
calculate wind effect | |
double | rcsc::unquantize_error (const double &see_dist, const double &qstep) |
calculate minmax error range by inverse quantize function | |
変数 | |
const double | rcsc::SERVER_EPS = 1.0e-10 |
epsilon value |