Skip to contents

Computes the shortest signed angular distance (in radians) from from_angle to to_angle.

Usage

calculate_angular_difference(from_angle, to_angle)

Arguments

from_angle

Numeric. Starting angle (radians).

to_angle

Numeric. Target angle (radians).

Value

Numeric scalar – the angular difference wrapped to [-π, π].