- #1
Hoeni
- 5
- 0
Hi,
I am trying to simulate a freely jointed chain polymer to do that I want to put several rods (length a) on top of each other but with different angles. My problem is like this
I have a vector(1) and at the end of this vector(1) I put another vector(2), the z-axis of this vector(2)'s coordinate system is the direction of vector(1), but how do express the coordinates of the tip of this vector(2) in the coordinate system of vector(1)
t=theta f= phi a= radius
V1:
x = a sin t cos f
y = a sin t sin f
z = a cos t
and in another coordinate system
V2:
x2 = a sin t2 cos f2
y2 = a sin t2 sin f2
z2 = a cos t2
The direction of V1 is the z-axis in the coordinate system of V2
Given the fact that all the angles are known, how do I express the location of V2 in the coordinate system of V1?
Probably something with Euler transformations but i haven''t been able to figure it out.
Thanks in advance for any help.
Hoeni
I am trying to simulate a freely jointed chain polymer to do that I want to put several rods (length a) on top of each other but with different angles. My problem is like this
I have a vector(1) and at the end of this vector(1) I put another vector(2), the z-axis of this vector(2)'s coordinate system is the direction of vector(1), but how do express the coordinates of the tip of this vector(2) in the coordinate system of vector(1)
t=theta f= phi a= radius
V1:
x = a sin t cos f
y = a sin t sin f
z = a cos t
and in another coordinate system
V2:
x2 = a sin t2 cos f2
y2 = a sin t2 sin f2
z2 = a cos t2
The direction of V1 is the z-axis in the coordinate system of V2
Given the fact that all the angles are known, how do I express the location of V2 in the coordinate system of V1?
Probably something with Euler transformations but i haven''t been able to figure it out.
Thanks in advance for any help.
Hoeni