@Override public boolean test( final RealLocalizable l ) { return distancePowered( l ) < 1.0; }
/** * Creates a {@link WritableSuperEllipsoid} with {@link BoundaryType#OPEN * open} {@link MaskPredicate#boundaryType() boundaries}. */ public static WritableSuperEllipsoid openSuperEllipsoid( final double[] center, final double[] semiAxisLengths, final double exponent ) { if ( exponent == 2 ) return new OpenWritableEllipsoid( center, semiAxisLengths ); return new OpenWritableSuperEllipsoid( center, semiAxisLengths, exponent ); } }