Comparing paired objects in 3d space using direction angles.
I have data about paired objects in 3d space, where each object is defined by three components. What I would like to do is compare the orientations of the paired objects and see if one group of those paired objects differs from another. For visualization purposes, imagine a short piece of string suspended in some viscous gel with some random conformation. I have the coordinates of 3 spots of this short string: the center, and both ends- with each spot represented by a set of xyz coordinates. This string has another one nearby in 3d space and again I know the xyz coordinates of the center of that string and both of its ends. I would like would like to compare how these two strings are oriented in space relative to each other, and/or to a mutual central point. Ultimately the aim is to see if these “folded strings” are arranged differently than ones in another condition, say suspended in a different viscous gel
So far, I have found a mutual center by defining the midpoint (Mx,My,Mz) of a line connecting the center of object 1 of a pair with object 2 in that pair. My thought is that I can measure the direction angles: α, β and γ as well as angles of the xy projection of the vectors from the midpoint to the string ends but I’m having a bit of trouble so far. If an end of object1 is E1 , the center is C1, and the other end is O1, then how can I measure the direction angles around the vector from M to E1. What I am stuck on is that I will be using M as a frame of reference rather than an origin point at 0,0,0. I know when a vector is coming from the origin, one can measure α as arcos(Vx/V) where Vx is the x component of the vector V, but how will this change using M rather than the origin.
Would it be sufficient, for example, to say cos(α)=(E1x-Mx)/sqrt((E1x-Mx)^2 + (E1y-My)^2 + (E1z-Mz)^2 )
Apologies in advance if this is convoluted, this is not my field so any suggestions for other ways to compare the orientations of the “strings” or issues with this way of measurement are also appreciated.
Edit-Formatting
Posted Apr 30, 2015, 5:52 PM UTC