R/maths_functions.R
calculate_2d_angle_deg.Rd
Calculate 2D angle positive z-axis and a line from reference to target position in degrees
calculate_2d_angle_deg(target_x, target_z, ref_x = 0, ref_z = 0)
Vector of target x positions
Vector of target y positions
Vector of reference x positions (default: origin)
Vector of reference y positions (default: origin)
Angle between a line from reference to target vector and positive z-axis, measured clockwise and in [-180, 180]