Had a fun geometry problem last night to optimize - given all the vertices of the egg (in local coordinates, that you know in advance), and it's rotation, to find the lowest point (y-coordinate). Here's the slow version of the code - how would you optimize it?
4 days ago