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 50% commission on every question your affiliated users ask or answer.
- unanswered
- 108 views
- Pro Bono
Related Questions
- Pulley System
- Get area of rotated polygon knowing all coordinates and angle.
- Find $\lim_{x\rightarrow \infty} \frac{1}{x^2}\sin x^2\tan x$
- Consider the matrix, calculate a basis of the null space and column space
- Eigenvalues and eigenvectors of $\begin{bmatrix} 3 & 2 & 4 \\ 2 & 0 & 2 \\ 4 & 2 & 3 \end{bmatrix} $
- Help doing a few trig proofs
- Help Calculating Surface Area of a Cylinder with a Slit
- Find $x$ so that $\begin{bmatrix} 2 & 0 & 10 \\ 0 & x+7 & -3 \\ 0 & 4 & x \end{bmatrix} $ is invertible
Questions at this level should be offered a bounty.