}
public List<Person> findWithinTriangle(double x1, double y1, double x2, double y2, double x3, double y3)
{
Triangle triangle = new Triangle(x1, y1, x2, y2, x3, y3);
Query q = em.createQuery("Select p from Person p where p.currentLocation IN :triangle");
q.setParameter("triangle", triangle);
List<Person> persons = q.getResultList();
return persons;