Function Entry: VLE-VECTOR-GETPERPVECTOR

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

Function Entry: VLE-VECTOR-GETPERPVECTOR

Name

vle-vector-getperpvector

Class

BricsCAD VLE Library Function

Syntax

(vle-vector-getperpvector vec)

Arguments and Values

  • vec a 2d or 3d vector list

Description

This function returns a vector which is perpendicular to vec.

Return Values

(vecX vecY vecZ) always a 3d vector list, perpendicular (orthogonal) to input vector vec

Examples

(setq vec '(2 0
0))

(vle-vector-getperpvector vec)

(0.0 1.0 0.0)

(setq vec '(2 0 3))

(vle-vector-getperpvector vec)

(0.0 1.0 0.0)

(setq vec '(2 -1 1))

(vle-vector-getperpvector vec)

(0.447213595499958 0.894427190999916
0.0)

Notes

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

Availability

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

Source Notes