Hover the mouse over the triangle Green flag to change the triangle position
Using this in a project I'm working on :) Algorithm based off the accepted answer on this page: http://stackoverflow.com/questions/13300904/determine-whether-point-lies-inside-triangle