Function Entry: VLE-VECTOR-ANGLETO

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: VLE-VECTOR-ANGLETO

Name

vle-vector-angleto

Class

BricsCAD VLE Library Function

Syntax

(vle-vector-angleto vec1 vec2)

Arguments and Values

  • vec1 a 2d or 3d vector list
  • vec2 a 2d or
  • 3d vector list

Description

This function returns the angle between vectors vec1 and vec2.

Return Values

double, angle in radians, in range 0 … PI

Examples

(setq v1 '(2 0 0) v2 '(0 3
0))

(vle-vector-angleto v1 v2)

1.5707963267949

(setq v1 '(2 0 0) v2 '(-1 -1 0))

(vle-vector-angleto v1 v2)

2.35619449019234

Notes

input vectors must not be unit-length (non-normalised vectors are allowed)

Availability

  • AutoCAD 2026: not documented.
  • BricsCAD V26: documented.
  • Status: BricsCAD-only.

Source Notes