Function evosim::contorl::update::get_relative_angular_velocity
source · pub fn get_relative_angular_velocity(v1: &Velocity, v2: &Velocity) -> f32
Expand description
Calculates the relative angular velocity between two velocity objects.
This function takes two references to Velocity
objects and computes the relative angular
velocity between them in degrees per second. The result is normalized by dividing by π and
multiplying by 180.
Parameters
v1
: A reference to the first velocity object.v2
: A reference to the second velocity object.
Returns
Returns the relative angular velocity between the two velocity objects in degrees per second.