Angle between 2 vectors in a certain direction

Click For Summary

Discussion Overview

The discussion revolves around determining the angle between an incident vector and the faces of a wedge, particularly when the angle between the faces exceeds 180 degrees. Participants explore methods for calculating this angle using vector mathematics, including the dot product and cross product, while considering the geometric implications of the wedge's structure.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant describes the scenario of a wedge with two faces and an incident vector, seeking a method to determine the angle between the vector and one face without crossing the other face.
  • Another participant suggests visualizing the faces as infinite planes and proposes that the intersection of rays traced from the planes can indicate whether the angle is greater or less than 180 degrees.
  • A later reply from the same participant acknowledges a previous error in reasoning and introduces the idea that the orientation of the normal vectors can indicate the angle's magnitude, proposing the use of the cross product for further analysis.
  • Another participant outlines a method for dividing the space into four regions based on the geometry of the wedge, detailing how to determine the region of incidence and calculate the angles accordingly.

Areas of Agreement / Disagreement

Participants express varying approaches to the problem, with no consensus on a single method for determining the angle. Multiple competing views and methods remain present throughout the discussion.

Contextual Notes

Participants note limitations in their approaches, including the need to consider different quadrants and the implications of normal vector orientations. The discussion does not resolve the mathematical steps involved in the proposed methods.

whitenight541
Messages
48
Reaction score
0
Hi all,

I want to implement diffraction of waves by edges. I have a wedge with 2 faces o-face and n-face. I have the tangent and normal of each face.

Assume the angle between the 2 faces is alpha where alpha is the outer angle (> 180).

I have an incident vector, passing through the edge though the outer angle (alpha)

I want the angle between the incident vector and the o-face in the same direction as alpha (i.e. without crossing n-face).

In the normal circumstances, I would thus use the dot product and get the cosine of the angle between them.

But the problem is that in some cases the angle is greater than 180 and in other it is not. How can I determine this? The dot product only gets angles [0, 180].

Thanks in advance
 
Mathematics news on Phys.org
Try thinking about it this way: Imagine that both faces are infinite planes in 3-space (which you can define with your normal vectors and some point on each plane). Start at some point on one plane and trace a ray in the direction of the plane normal. Assuming that your normal vectors will always face away from the wedge (out from the face, not in towards it), the ray will always intersect the opposite plane when the angle is > 180 deg., and it will never intersect it when the angle is < 180 deg.

Does this help? I know I used a lot of words to say this, but I think the math will be fairly easy.

Hope this helps,

Kerry
 
I was thinking about this last night, and I realized that what I posted was incorrect... I was only considering angles in two of the four quadrants. There might still be some way to use this approach, but it is not perfect.

This might be better: If the normal vectors are "pointed towards each other," the angle is < 180, if they are "pointed away from each other," the angle is > 180. Maybe looking at the result of a cross product between the two normal vectors can give some indication? If you've got two normals, and you cross them, you'll get some vector. If you flip one of them so it's going in the opposite direction, the cross product will give you a vector that lies on the same line as the first, but in the opposite direction, right?

-Kerry
 
Thanks a lot for replying to my question

I think I figured it out.

I can divide the space I have into 4 regions:
1- The interior of the wedge (marked by the two tangents with both of them pointing away from the edge)
2- The opposite region of the interior region and it is marked by the opposite direction of the tangents
3- The region between the first face and the opposite to the tangent of the second face
4- The region between the second face and the opposite to the tangent of the first face

I know the interior angle of the wedge. I can use this info to determine the region of incidence as follows:
1- I'm sure the ray would never be incident from the first region
2- For the second region, I get the angle between the ray and the tangents to both faces (both pointing away from the edge). If the ray truly lies in this region, both angles should be obtuse and their sum should be equal to 360 - the interior angle.
3- For the third region, I get the angle between the ray and the tangent of the first face, and the angle between the ray and the opposite to the tangent of the second face. I add 180 to the second angle to get the angle between the ray and the tangent to the second face. If the sum of these angles equals 360 - the interior angle then the ray lies in this region.
4- The fourth region is similar to the third region but with the opposite faces.

Once I determine the region, I can get the angle with any of the faces because I now know when to add 180 or not.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 24 ·
Replies
24
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 26 ·
Replies
26
Views
5K
  • · Replies 5 ·
Replies
5
Views
13K
Replies
24
Views
2K
  • · Replies 15 ·
Replies
15
Views
1K