Function Entry: VLE-VECTOR-NORMALISE

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

Function Entry: VLE-VECTOR-NORMALISE

Name

vle-vector-normalise

Class

BricsCAD VLE Library Function

Syntax

(vle-vector-normalise vec)

Arguments and Values

  • vec a 2d or 3d vector list

Description

This function returns the normalised vector of vector vec (length is 1.0).

Return Values

(vecX vecY vecZ) always a 3d vector list, always in unit-length (1.0)

Examples

(setq vec '(1 1
3))

(vle-vector-normalise vec)

(0.301511344577764 0.301511344577764
0.904534033733291)

(setq vec '(2 2 2))

(vle-vector-normalise vec)

(0.577350269189626 0.577350269189626
0.577350269189626)

Availability

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

Source Notes