Both segments start at , so their direction vectors are and . Their dot product is , and their norms are and . Thus
The angle between the rays lies in , so its sine is nonnegative:
The negative cosine correctly identifies an obtuse angle. One also obtains the sine from , using the cross product.

Articles by others on the same topic (0)

There are currently no matching articles.