AlecMcE.com

Coding on the Flash Platform

as3geometry Update

View Comments

I’ve been working on a GitHub geometry library recently.

The Flash plugin is required to view this object.


view source | click-and-drag the red points to interact

I’ve created various of these over the years, AS1, AS2, AS3, and now AS3+as3signals. It is gratifying to finally have the means to define events in interfaces!

The work uses the alpha of ASUnit version 4 (Rob Penner’s ‘Free Runner’ implementation, though it is not purely Test-Driven Development because in some cases I am refactoring old hitherto-private code. However, the classes in the test repository might serve as a useful example of the upcoming ASUnit library.

The work aims for elegance of structure rather than speed, and I will be concentrating on the Euclidean 2D for the time-being, though may look at extending it into 3D or non-Euclidean plane structures if I ever have the time.

http://github.com/alecmce/as3geometry

Next Steps

  • Circle-Line intersections
  • Polygon-Polygon intersections (Vertices)
  • Polygon-Polygon intersections (Polygons)
  • Circle-Circle intersection (Vertices)
  • Circle-Line intersection
  • Circle Sectors
  • Circle Rays
  • Circle-Circle intersection (Lens)
  • Circle-Circle intersection
  • Bezier Curves
  • Parabola

Written by alec

November 25th, 2009 at 11:03 pm

Posted in as3, library, math

Tagged with

blog comments powered by Disqus