马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×

- ;; ! 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 : [email]rakesh.rao@4d-technologies.com[/email]
- ;; ! Web : [url]www.4d-technologies.com[/url]
- ;; ! ****************************************************************************
- ;; 两个矢量的点积
- (defun GE_VecDotProduct (v1 v2)
- (apply '+ (mapcar '* v1 v2))
- )
|