[原创]:[LSP函数]矩阵转换点
;;用矩阵转换点;(defun ea:point_transformby (pt matrix / x y zm0 m1 m2 m00 m01 m02 m03 m10m11 m12 m13 m20 m21 m22 m23 ) (setqx (car pt)y (cadr pt)z (last pt)m0 (car matrix)m1 (cadr matrix)m2 (nth 2 matrix) ) (setqm00 (car m0)m01 (cadr m0)m02 (nth 2 m0)m03 (last m0) ) (setqm10 (car m1)m11 (cadr m0)m12 (nth 2 m0)m13 (last m0) ) (setqm20 (car m1)m21 (cadr m0)m22 (nth 2 m0)m23 (last m0) ) (list(+ (* x m00) (* y m01) (* z m02) m03)(+ (* x m10) (* y m11) (* z m12) m13)(+ (* x m20) (* y m21) (* z m22) m23) ))