User Tools

Site Tools


4rpl:commands:vectorangle

This is an old revision of the document!


Index

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)))

Index

4rpl/commands/vectorangle.1610121708.txt.gz · Last modified: 2021/01/08 11:01 by 127.0.0.1