private ArrayList<Edge> selectEdgesForSitePoint(Point coord, ArrayList<Edge> edgesToTest) {
        ArrayList<Edge> filtered = new ArrayList();

        for (Edge e : edgesToTest) {
            if (((e.get_leftSite() != null && e.get_leftSite().get_coord() == coord)
                    || (e.get_rightSite() != null && e.get_rightSite().get_coord() == coord))) {
                filtered.add(e);
            }
        }
        return filtered;

        /*function myTest(edge:Edge, index:int, vector:Vector.<Edge>):Boolean
         {
         return ((edge.leftSite && edge.leftSite.coord == coord)
         ||  (edge.rightSite && edge.rightSite.coord == coord));
         }*/
    }