
Here's a trivial post, mostly just to show off how nice mathematical code can look in Haskell. It illustrates the
centroid,
incircle, and
circumcircle of a random triangle, with everything defined in terms of vertex triples. The viewport centers on the circumcenter, and the triangle's interior is filled using
barycentric coordinates.
No comments:
Post a Comment