RepCad Posted May 4, 2023 Posted May 4, 2023 (edited) Hi, I'm looking for a shortest and brief code to calculate area of two corners points of a polyline. (LowerLeft , Upper Right ) for a list : '((x y) (x y)) Can someone give me a best method ? Thanks in advance. Edited May 4, 2023 by RepCad Quote
Lee Mac Posted May 4, 2023 Posted May 4, 2023 (edited) Maybe - (defun 2parea ( p1 p2 ) (abs (apply '* (mapcar '- p2 p1 '(0 0)))) ) Edited May 4, 2023 by Lee Mac 3 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.