39 float& x,
float& y,
float& z) {
42 if (!std::isfinite(velocity) || std::abs(velocity) > motion.
max_speed_mps || !std::isfinite(dt) ||
46 float origin_alpha = 0.0F;
55 const float range_squared = ray_x * ray_x + ray_y * ray_y + ray_z * ray_z;
56 if (!std::isfinite(range_squared) || range_squared <= 0.0F)
return false;
58 const float inverse_range = rsqrtf(range_squared);
60 const float inverse_range = 1.0F / std::sqrt(range_squared);
62 const float displacement_scale = motion.
doppler_sign * velocity * dt * inverse_range;
63 if (!std::isfinite(displacement_scale))
return false;
64 x += ray_x * displacement_scale;
65 y += ray_y * displacement_scale;
66 z += ray_z * displacement_scale;
bool compensateObjectMotion(const ObjectMotion &motion, float velocity, uint32_t point_time, float &x, float &y, float &z)
Advance a measured acquisition ray using absolute radial velocity.