(49g 50g) Shoelace algorithm
|
08-25-2018, 03:27 PM
Post: #15
|
|||
|
|||
RE: ( HP49/50) Shoelace algorithm
(08-25-2018 01:51 AM)Thomas Klemm Wrote: I used these formulas found in Centroid: Fantastic! Once again smaller and faster. My program from Post 1: 534ms, 290 bytes Your program: 441ms, 194 bytes. I may try a ListExt version when I have some free time. By the way, ListExt commands make it easy to convert between the flat list format used by my programs and the two separate lists used by yours. To covert from { X1 Y1 X2 Y2...Xn Yn } to { X1 X2...Xn } { Y1 Y2...Yn } : Code:
To convert in the opposite direction: Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)