MATLAB: Negative angle between vectors / planes

anglegeometrynegativeplanevector

Hello,
I would like to ask a simple question: Is there a way to somehow compute and angle between two vectors / planes that is nor only positive??
I will be very thankful for a solution to this problem!!! Thank you.

Best Answer

In order to determine if the angle between two vectors is positive or not, there would have to be a reference normal plane vector (vn). If so, yes you can. There is a way to check if the angle between those two vectors should be negative. First take the cross product of the two vectors (v1 x v2) to get the normal of the plane (v3). Then, find the dot product of v3 and vn. If this dot product is negative, then the theta (angle between v1 and v2) should be negative