13 #ifndef __diguyMathHelper_H
14 #define __diguyMathHelper_H
19 #define CPLUSPLUS_ONLY
28 class bdiScenarioCharacter;
86 static int get_ballistic_arc_velocity(
float delta_x,
float delta_y,
float delta_z,
float initial_speed,
float max_elevation,
float min_elevation,
87 float *ret_vel_x,
float *ret_vel_y,
float *ret_vel_z,
float *ret_delta_x,
float *ret_delta_y,
float *ret_delta_z);
105 static int quadratic_formula(
float a,
float b,
float c,
float *ret1,
float *ret2);
123 static int calculate_euler_angles_from_vector(
float x,
float y,
float z,
float roll,
float *yaw,
float *pitch);
141 static void calculate_vector_from_euler_angles(
float yaw,
float pitch,
float *x,
float *y,
float *z);
173 static float calculate_slide_in_rate(
float current_distance,
float base_rate,
float base_distance,
float acceptable_remainder = 0.0f);
201 static float exponential_formula(
float c,
float k,
float t);
218 static float calculate_exponential_growth_constant(
float relative_value,
float t);
236 static void rotate_vector(
float in_x,
float in_y,
float in_z,
237 float rz,
float rx,
float ry,
238 float* out_x,
float* out_y,
float* out_z);
257 static void unrotate_vector(
float in_x,
float in_y,
float in_z,
258 float rz,
float rx,
float ry,
259 float* out_x,
float* out_y,
float* out_z);
Contains useful math functions.
Definition: diguyMathHelper.h:44
The class that represents what parameters an agent is currently using to carry out their base behavio...
Definition: diguyAgentParams.h:39
The class that represents a DI-Guy Entity in the world.
Definition: diguyCharacter.h:82
static double t
4 Header files and forward declarations
Definition: simple_playback_ogl.cpp:56
Represents algorithm for steering and maneuvering a character towards a goal point.
Definition: diguyCharacterGuide.h:561