public boolean contains(Vector vector) {
		if(vector.x > max.x || vector.x < min.x || vector.y > max.y || vector.y < min.y) {
			return false;
		}
		Edge ray = new Edge(vector, new Vector(min.x - 1, min.y - 1));
		int intersections = 0;
		for(Edge edge : edges) {
			if(ray.intersects(edge, true)) {
				intersections++;
			}
		}
		return (intersections % 2) == 1;
	}