Lets assume that I have a set of lines with 2 numbers per line. Each line corresponds a vector and the first number of each line corresponds its norm while the 2nd corresponds the angle in rads from a specific vector 'X'.
An example is this:
//norm, angle (In rads from the vector 'X')
2.56, 1.51 //Vector A
14.0, 1.57 //Vector B
9.57, 0.18 //Vector C
5.02, 1.27 //Vector D
4.99, 0.00 //Vector E (This could also be the vector 'X')
Now, I need to calculate the norm of the centroid of these 5 vectors as well as the angle of this, from vector 'X' in rads. I need this for a program in python, so a function that already exists and implement this, could also be my answer.
Edit: all angles in rads are between [0, π/2]