gopi

command module
v0.0.0-...-cc64c10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

gopi

I'm learning go with a view to making a game with it one day.

So I thought a good way to get to know go and its game development ecosystem was to create an OpenGL-based visualisation of a Monte Carlo method for approximating pi.

This program imagines a square, and a circle inside the square with a diameter equal to the square's width. It plots random points inside the square. The ratio of points inside the circle to the total number of points is a very rough approximation of pi/4.

In addition, this program renders a visualisation of this Monte Carlo simulation.

Screenshot

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址