Rubyllipse
Yes, I know the name's dumb.
A simple gem for managing and playing with ellipses.
Usage
Create a new Ellipse object: Rubyllipse::Ellipse::new(major_radius, minor_radius, center_coordinates); myellipse = Rubyllipse::Ellipse::new(3, 3, [0,0]).
myellipse.is_circle? == True as we can see we just created a circle. myellipse.area, myellipse.perimeter will return the circle's area, perimeter.
myellipse.move_horizontally(3) will move the ellipse by 3 units towards the positive horizontal way and reinitialize the myellipse object.
One of the most important aspects of an Ellipse object is the form attribute. it can be either set to 'horizontal' or 'vertical' and it determines if the ellipse's major-axis will be vertical or horizontal (tilted, rotated ellipses are not available yet).
Another important method is give_function!. It returns a string for the purpose of mainly displaying the function of the Ellipse object.
Other methods are for accessing the object's attributes and don't need further explanation.
Notes
If you used the module and found something odd, bad, please send me an e-mail; I am still new to Ruby.