|
;; ! Function : Computes the dot products of two vectors
;; !
;; ! Arguments: 'v1' - First vector
;; ! 'v2' - Second Vector
;; !
;; ! Returns : 'scl' - The dot product of the two vectors which is a scalar
;; ! value
;; ! Theory: Say you have two vectors
;; ! A= ax i + ay j + az k
;; ! B= bx i + by j + bz k
;; !
;; ! then A . B = ax.bx + ay.by + az.bz
;; ! (C) 1999-2004, Four Dimension Technologies, Bangalore
;; ! e-mail : rakesh.rao@4d-technologies.com
;; ! Web : www.4d-technologies.com
;; ! ****************************************************************************
;; 两个矢量的点积
(defun GE_VecDotProduct (v1 v2)
(apply '+ (mapcar '* v1 v2))
)
|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )
GMT+8, 2024-5-14 02:46 , Processed in 0.113633 second(s), 23 queries , Gzip On.
Powered by Discuz! X3.5
© 2001-2024 Discuz! Team.