Angle Between Two Vectors
LSL Header:
{{LSL Header}}Two methods for finding the angle between two vectors. The advantage of the first is that the vectors need not be normalized. If you know you have normal vectors then you can use the second method.
angle = llAtan2( llVecMag(A % B), A * B )angle = llAcos( A * B )See llAngleBetween for angle between rotations.
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.