Find the sine sign given a pair of 3D vectors

2.8k Views Asked by At

I want to find the exact sine between two vectors in 3-dimensional space.

Data:

  • $x$: vector
  • $y$: vector
  • $z = \Vert x \times y \Vert$

I have tried this:

$$\sin \alpha = \frac{\Vert z\Vert}{( \Vert x\Vert\cdot \Vert y\Vert)}$$

but i obtain only the absolute value of the angle, is there a way to obtain even the sign?

2

There are 2 best solutions below

2
On

But if you know a little about inner product then you have that the angle $\,\theta\,$ between both vectors fulfills:

$$\cos\theta=\frac{x\cdot y}{||x||\;||y||}$$

and now simply use the trigonometric identity

$$\sin x=\sqrt{1-\cos^2x}$$

to get what you want. (Warning: the sign above must be carefully chosen depending on the wanted/given domain of $\,\theta\,$ )

0
On

Hint: Take the projection of $x$ onto $y$, and check if they are pointing in the same, or opposite directions.

Note that your given formula for $\sin \theta$ is incorrect. It should involve $||z||$.