I'm trying to make a Dynamic Time Warping algorithm for usage with Quaternions.
In order for making the cost function to work, it has to calculate a specific cost between 2 Quaternions.
I've developped a cost function to make it work, but it requires the projection of a quaternion on an plane/axis.
-- QUATERNIONS ==> PROJECTION ON PLANE ==> POINTS IN PLANE
| Q1 measured value ==> (1,0,0) * Q1 ==> P1'
| Q2 pattern value ==> (1,0,0) * Q2 ==> P2'
cost = SQRT( Abs(P1.x - P2.x) + Abs(P1.y - P2.y) + Abs(P1.z - P2.z) )
Now i'm currently encountering the trouble of making that projection part to work with OpenTK's math library.
Can anybody help me with this or guide me to the function (if there is one available yet)?