Home
last modified time | relevance | path

Searched refs:dir_vec (Results 1 – 1 of 1) sorted by relevance

/RvlSDK-3.1.4/build/demos/kpaddemo/src/
Dswing.c230 static Vec dir_vec ; // The aerial speed that is accelerated by the amount of change in acce… variable
251 dir_vec.x = dir_vec.y = dir_vec.z = in init_sample()
298 dir_vec.x *= DIR_VEC_DAMP ; in work_sample()
299 dir_vec.y *= DIR_VEC_DAMP ; in work_sample()
300 dir_vec.z *= DIR_VEC_DAMP ; in work_sample()
307 dir_vec.x += f1 * acc_vec.x ; in work_sample()
308 dir_vec.y += f1 * acc_vec.y ; in work_sample()
310 dir_vec.z = 0.0f ; in work_sample()
317 f1 = sqrtf( dir_vec.x * dir_vec.x + dir_vec.y * dir_vec.y + dir_vec.z * dir_vec.z ) ; in work_sample()
323 dir_nrm.x = f1 * dir_vec.x ; in work_sample()
[all …]