User Tools

Site Tools


ixe:irpl:math_utility:vectorangle

VectorAngle

VectorAngle(<-from <-to) ->rotAngle

Description

Returns the angle in degrees between from and to. The angle returned is always the non reflex angle between the two vectors - ie the smaller of the two possible angles between them and never greater than 180 degrees. NOTE: This routine does NOT work with 4 dimensional vectors. The 4th dimension will be ignored (treated as 0).

Examples

trace(VectorAngle(V3(1 2 3)  V3(3 4 5)))
ixe/irpl/math_utility/vectorangle.txt · Last modified: 2025/01/20 09:58 by 127.0.0.1