code: public static boolean allCoplanar(Vector3d planeNormal, Point3d pointInPlane, Point3d... points) {
          for (Point3d point : points) {
              double distance = StereoTool.signedDistanceToPlane(planeNormal, pointInPlane, point);
              if (distance < PLANE_TOLERANCE) {
                  continue;
              } else {
                  return false;
              }
          }
          return true;
      }
docs: Check that all the points in the list are coplanar (in the same plane)
  as the plane defined by the planeNormal and the pointInPlane.
  
  @param planeNormal the normal to the plane
  @param pointInPlane any point know to be in the plane
  @param points an array of points to test
  @return false if any of the points is not in the plane