0 Members and 1 Guest are viewing this topic.
(setq lst ((505.434 294.582 0.0) (630.636 386.387 0.0) (755.837 478.191 0.0)))(setq pt (505.434 294.582 0.0))
Code - Auto/Visual Lisp: [Select]Benchmarking ..............Elapsed milliseconds / relative speed for 2048 iteration(s): (MEMBER PT LST)..............................1388 / 4.26 <fastest> (VL-SOME (QUOTE (LAMBDA (X) (EQUAL X...).....5179 / 1.14 (VL-REMOVE-IF-NOT (QUOTE (LAMBDA (X)...).....5913 / 1 <slowest>
Elapsed milliseconds / relative speed for 8192 iteration(s): (VL-POSITION PT LST)..........................1485 / 8.39 <fastest> (MEMBER PT LST)...............................4594 / 2.71 (VL-SOME (QUOTE (LAMBDA (X) (EQUAL X...).....11875 / 1.05 (VL-REMOVE-IF-NOT (QUOTE (LAMBDA (X)...).....12453 / 1 <slowest>
In real world use I dont believe vl-position or member are practical for floats or lists of floats.