leaving sp[0] pointing to the target . atan2 Compute arc-tangent of two values . Usage ... atan2( first , second ) Parameters: sp[0] holds the second value sp[-1] holds the first