vle-vector-dotproduct


(vle-vector-dotproduct  vec1  vec2)

This function returns the dot-product vector of vector vec1 and vector vec2.

Arguments

vec1  a 2d or 3d vector list

vec2  a 2d or 3d vector list

Return

double

Example

(setq v1 '(2 0 0) v2 '(0 3 0))
(vle-vector-dotproduct v1 v2)
0.0

(setq v1 '(2 0 0) v2 '(-2 0 0))
(vle-vector-dotproduct v1 v2)
-4.0

(setq v1 '(2 1 0) v2 '(-2 2 1))
(vle-vector-dotproduct v1 v2)
-2.0

Remarks




©  Bricsys NV. All rights reserved.