This class models the floor in Buffon's needle experiment, and shows the ruled floor and the needle. The class has methods for getting and setting the colors, the needle length, the distance to the lower crack, the angle that the needle makes with the horizontal, and a Boolean variable that specifies whether the needle is to be shown. The class also has methods for getting the value and probability of the crack cross event
The text area below gives the code for this object, so that you can browse the constructors, methods, and properties of the object. Of course, this source file is part of devices.zip, which contains all source and resource files for the objects in the devices package.