/** * Creates a {@link WritableEllipsoid} with {@link BoundaryType#CLOSED * closed} {@link MaskPredicate#boundaryType() boundaries}. */ public static WritableEllipsoid closedEllipsoid( final double[] center, final double[] semiAxisLengths ) { return new ClosedWritableEllipsoid( center, semiAxisLengths ); }
/** * Creates a {@link WritableSuperEllipsoid} with {@link BoundaryType#CLOSED * closed} {@link MaskPredicate#boundaryType() boundaries}. */ public static WritableSuperEllipsoid closedSuperEllipsoid( final double[] center, final double[] semiAxisLengths, final double exponent ) { if ( exponent == 2 ) return new ClosedWritableEllipsoid( center, semiAxisLengths ); return new ClosedWritableSuperEllipsoid( center, semiAxisLengths, exponent ); }