title: How can I tell if a closed path contains a given point?
body: <p>In Android, I have a Path object which I happen to know defines a closed path, and I need to figure out if a given point is contained within the path. What I was hoping for was something along the lines of </p>
  
  <p>path.contains(int x, int y)</p>
  
  <p>but that doesn't seem to exist.</p>
  
  <p>The specific reason I'm looking for this is because I have a collection of shapes on screen defined as paths, and I want to figure out which one the user clicked on. If there is a better way to be approaching this such as using different UI elements rather than doing it "the hard way" myself, I'm open to suggestions.</p>
  
  <p>I'm open to writing an algorithm myself if I have to, but that means different research I guess.</p>