Today's prompt was 'emu'.
I've been messing around with divs for a little while now, all so that I can wrap words in my page around oddly shaped polygons and I've gotten away from the polygons I was obsessed with all last year, gone back to triangles and quads. I was thinking about how maybe I should find the convex hull of and then triangulate a 2D point cloud. I can use the cross product, only I will need to normalize it, or perhaps use the Math.atan2 function. Cross gets me the area of a triangle easily enough, dot product lets me know when the two vectors are pointing away from each other or are less than half pi apart, which is useful.
No comments:
Post a Comment