public static boolean visibility(PathNode a, PathNode b) {
Ray3 ray = Ray3.create(a.getPosition(), b.getPosition());
if (ray != null) {
PathInfo path = a.getPathInfo();
VisibilityFunction3 vf = path.getScene().getRoot();
return vf.visibility(ray);
} else { // ray == null
return false;
}
}