给定以下代码,调用函数的语法是dist
什么?
(defstruct coord
x
y)
(defstruct line
(point1 :type coord)
(point2 :type coord) )
(defun dist (point1 point2)
(sqrt (+ (square (- (coord-x point1) (coord-x point2)))
(square (- (coord-y point1) (coord-y point2))))))
(defun square (x) (* x x))