normal order

Sunday, June 28, 2015

triangle geometry

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.
Posted by sacheie at 11:46 PM 0 comments
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: graphics, plane geometry
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2019 (1)
    • ►  June (1)
  • ►  2018 (2)
    • ►  May (1)
    • ►  March (1)
  • ►  2017 (6)
    • ►  December (1)
    • ►  May (1)
    • ►  March (1)
    • ►  February (3)
  • ►  2016 (5)
    • ►  June (1)
    • ►  March (1)
    • ►  February (2)
    • ►  January (1)
  • ▼  2015 (11)
    • ►  December (4)
    • ►  November (1)
    • ►  August (1)
    • ►  July (1)
    • ▼  June (1)
      • triangle geometry
    • ►  March (1)
    • ►  February (2)
  • ►  2014 (3)
    • ►  September (1)
    • ►  August (1)
    • ►  January (1)
  • ►  2012 (2)
    • ►  July (1)
    • ►  April (1)
  • ►  2011 (4)
    • ►  October (1)
    • ►  June (1)
    • ►  May (1)
    • ►  February (1)
  • ►  2009 (1)
    • ►  October (1)
Powered by Blogger.