/** * Find all entries within a given distance from a center point. * @param dist Maximum distance * @param optionalDist Distance function, optional, can be `null`. * @param center Center point * @return All entries with at most distance `dist` from `center`. */ public PhRangeQueryF<T> rangeQuery(double dist, PhDistance optionalDist, double...center) { if (optionalDist == null) { optionalDist = PhDistanceF.THIS; } long[] lKey = new long[center.length]; pre.pre(center, lKey); PhRangeQuery<T> iter = pht.rangeQuery(dist, optionalDist, lKey); return new PhRangeQueryF<>(iter, pht, pre); }