Function Entry: VLE-VECTOR-ANGLETOREF
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: VLE-VECTOR-ANGLETOREF
Name
vle-vector-angletoref
Class
BricsCAD VLE Library Function
Syntax
(vle-vector-angletoref vec1 vec2 normal)
Arguments and Values
- vec1 a 2d or 3d vector list
- vec2 a 2d or
- 3d vector list
- normal a 2d
- or 3d vector list, specifies the plane normal
Description
This function returns the angle between vectors vec1 and vec2, using normal as reference vector, which defines the vector plane.
Return Values
double, angle in radians, in range 0 … 2PI
Examples
(setq v1 '(2 0 0) v2 '(0 3 0) normal '(0 0 1)) (vle-vector-angletoref v1 v2 normal) 1.5707963267949 (setq v1 '(2 0 0) v2 '(-1 -1 0) normal '(0 0 1)) (vle-vector-angletoref v1 v2 normal) 3.92699081698724
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
- [vle-vector-angletoref (BricsCAD V26 DevRef)](https://developer.bricsys.com/bricscad/help/en_US/V26/DevRef/source/vle-vector-angletoref.htm)
- Status: documented (Phase 3 follow-up: body filled from the BricsCAD V26 per-symbol page on 2026-04-26).