This week’s subject is Malfatti Cirlces:
http://mathworld.wolfram.com/MalfattiCircles.html
They look something like this:
Basically, tangent circles, but each circle is also tangent to two sides of the given triangle.
The challenge would be to take the file below:
http://www.bit-101.com/blog/wp-content/uploads/2008/05/malfatti_circles.fla
and fill in the drawMalfattiCircles() method with some code that will actually draw correct Malfatti Circles. Feel free to create additional helper functions as needed. The function will be called once in the beginning and then whenever any of the triangle points are drawn.
Again, the prize is a copy of Foundation ActionScript 3.0 Animation: Making Things Move! to the first person who sends in a correct solution (or convincing enough to make me believe it is correct).
Mail sent. Let’s see if there was someone faster. 🙂
Oh dang – look like I was too slow: http://www.quasimondo.com/malfatti_circles.html
Good I skipped the Code-Cleanup. 😀
Oh yeah – and I should have posted my stuff first and then convert everything into a separate class…