3d geometry, matlab coding, I have to find relative angles of cation pi interactions, I have a biology background and am struggling with the arithmetic and mild coding for my project.
if have 2 points in a 3d space, T(xt,yt,zt) and L(xl,yl,zl), T also happens to be the centroid of a plane, i have 3 non collinear points vec1(x1y1z1), vec2(x2y2z2)and vec3(x2y3andz3) and i need to find the relative angle between T L and the Plane, how do I do it?
I tried
refVec = cross(vec2 - vec1, vec3 - vec1)
refVector = refVec / norm(refVec)
angleRad = acos(dot(refVector, L - T) / (norm(refVector) \* norm(L - T)));
is this fine? am i dumb? idk i got some angles but other angles were very wrong in some perspectives.
Join Matchmaticians Affiliate Marketing
Program to earn up to a 50% commission on every question that your affiliated users ask or answer.
- unanswered
- 268 views
- Pro Bono
Related Questions
- Trigonometry Question on 3D shape (10th grade)
- Petra is organising a team building activity day with work colleagues . She is considering two options, which both offer packages for groups of up...
- [Linear Algebra] Spectrum
- [Rotations in R^3 ] Consider R∶ R^3 → R^3 the linear transformation that rotates π/3 around the z-axis
- Deriving Ramanujan's Ellipse approximation
- How to filter data with the appearance of a Sine wave to 'flattern' the peaks
- Step by step method to solve the following problem: find coordinates of B.
- I need help with this Trig formula
Questions at this level should be offered a bounty.