@Override public void addPoint( final L point ) { if ( point.numDimensions() != n ) throw new IllegalArgumentException( "Point must have " + n + " dimensions" ); final double[] pos = new double[ n ]; point.localize( pos ); ( ( RealPointSampleList< L > ) this.points() ).add( new RealPoint( pos ), point ); }