Skip to content

dos_anglebetween

Dale Fugier edited this page Nov 1, 2023 · 3 revisions

Returns the angle between two 2D or two 3D vectors.

Syntax

dos_anglebetween vector1 vector2)

Parameters

vector1

The first vector.

vector2

The second vector.

Returns

The angle in radians, if successful.

nil on error.

Example

Command: (dos_anglebetween '(1 0) '(0.70710 0.70710))
0.785398
Command: (dos_anglebetween '(1 0 0) '(0 0 1))
1.5708
Clone this wiki locally