I research ObjectArx for (kpi, pi+pi, pi/2,pi*05)
Please for more speed , you replace (pi+pi) with kTwoPi
Even the greatest ObjectARX-autocad2018 , do not use (pi+pi) and
you KTwoPi for more-speed.You must use KTwOpil KHalfPi,...
(defun con_kpi(/ )
(setq;|a25930|;
kpi 3.14159265358979323846
kHalfPi 1.57079632679489661923
kTwoPi 6.28318530717958647692
kpi_max 3.14159265358979323846264338327950288
con_kpi kpi
con_kpi2 6.2831853071795865
)
It should be just slightly faster, but every improvement is welcomed...
Attachments updated here :
I compile your 'program (Greedy) to three-versions.(attached here).