docs: @Pure
  	public static boolean intersectsSegmentAlignedBox(
  			double sx1, double sy1, double sz1, double sx2, double sy2, double sz2,
  			double minx, double miny, double minz, double maxx, double maxy, double maxz) {
  		assert(minx<=maxx);
  		assert(miny<=maxy);
  		assert(minz<=maxz);
  
  		double dx = (sx2 - sx1) * .5;
  		double dy = (sy2 - sy1) * .5;
  		double dz = (sz2 - sz1) * .5;
  
  		double ex = (maxx - minx) * .5;
  		double ey = (maxy - miny) * .5;
  		double ez = (maxz - minz) * .5;
  
  		double cx = sx1 + dx - (minx + maxx) * .5;
  		double cy = sy1 + dy - (miny + maxy) * .5;
  		double cz = sz1 + dz - (minz + maxz) * .5;
  
  		double adx = Math.abs(dx);
  		double ady = Math.abs(dy);
  		double adz = Math.abs(dz);
  
  		if (Math.abs(cx) > (ex + adx)) {
  			return false;
  		}
  		if (Math.abs(cy) > (ey + ady)) {
  			return false;
  		}
  		if (Math.abs(cz) > (ez + adz)) {
  			return false;
  		}
  
  		if (Math.abs(dy * cz - dz * cy) > (ey * adz + ez * ady)) {
  			return false;
  		}
  		if (Math.abs(dz * cx - dx * cz) > (ez * adx + ex * adz)) {
  			return false;
  		}
  		if (Math.abs(dx * cy - dy * cx) > (ex * ady + ey * adx)) {
  			return false;
  		}
  		return true;
  	}