pub fn get_relative_rotation(
    transform1: &Transform,
    transform2: &Transform
) -> f32
Expand description

Calculates the relative rotation between two transforms.

This function takes two references to Transform objects and computes the relative rotation between them in degrees. The rotation is calculated using the arctangent of the z and w components of the rotation quaternion.

Parameters

  • transform1: A reference to the first transform.
  • transform2: A reference to the second transform.

Returns

Returns the relative rotation between the two transforms in degrees.