Firstly, I apologise if this is the wrong section, but as far as I could tell this was the most relevant.
I have a pair of triplets (p1, y1, r1) and (p2, y2, r2). Each one describes a set of roll, yaw, and pitch rotations in that order, by the angles given by each component in respective order...