Sorry for noobish question.
I am trying to make use of quaternion in my work.
I get input which has 2 parts:
Corners of a square polygon, and a quaternion which encodes rotation of this polygon in 3D space. I read about Quaternion, and understand that it has 4 components(h,a,b,c).
h is Cos(ang/2) where ang is angle of rotation.
a = v1*Sin(ang/2)
b = v2*Sin(ang/2)
c = v3*Sin(ang/2)
Here, v1,v2,v3 are components of unit vector along rotation axis.
So given a quaternion(h,a,b,c), we can find find ang and v1,v2,v3.
My query is that a unit vector(v1,v2,v3) doesn't uniquely represent a vector as all parallel vectors have same unit vector.
So how can we uniquely find axis of rotation? Or do I need to use centre of polygon to do that?