@Override public boolean test( final RealLocalizable l ) { return distancePowered( l ) <= radius * radius; }
/** * Creates a {@link WritableSphere} with {@link BoundaryType#CLOSED closed} * {@link MaskPredicate#boundaryType() boundaries}. */ public static WritableSphere closedSphere( final double[] center, final double radius ) { return new ClosedWritableSphere( center, radius ); }