PaperJS Point in Polygon (abstract)


In response to jeffsteph’s comment on this post regarding a visualization that would detect if a point (elephant) entered a polygon (piece of property), I made this quick demo. It is all written with PaperJS using a hit test on every frame to determine if the moving point intersects any of the randomly placed polygons. The final piece would be to overlay the whole canvas on top of a slippy map (e.g. Google Maps) and sync up coordinates.


One thought on “PaperJS Point in Polygon (abstract)

  1. Pingback: PaperJS Point in Poygon (map) | Darren's Side Projects

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s