Exemple #1
0
void testUniformSurfaceUnitSphere()
{
    Plot2D plot( output_path + "/random_sphere.png", plot_size, plot_size );
    float x = 0.0f, y = 0.0f, z = 0.0f;

    for( auto i = 0; i < points_per_plot; i++ ) {
        rng.uniformSurfaceUnitSphere( x, y, z );
        plot.addPoint( x, y );
    }
}