Sha256: 19470af5dc37e6f16f95433f3db27031d7bc7c73dbf5c92aec7611d826c57c19
Contents?: true
Size: 994 Bytes
Versions: 6
Compression:
Stored size: 994 Bytes
Contents
module Zadt class ADT def self.show_universe_help_message puts "Here are the methods for Universe:" puts "#add_point(coordinates)" puts "#add_sphere(radius, center)" puts "#self.distance(pointA, pointB)" end def self.show_hypersphere_help_message puts "Here are the methods for HyperSphere:" puts "#on?(point)" puts "#inside?(point)" puts "#outside?(point)" puts "#how_far(point)" end def self.show_sphere_help_message puts "The following methods are specific to a 3-dimensional Sphere:" puts "#volume" puts "#surface_area" puts "#equation, which returns a string in the form of (x-a)^2 + (y-b)^2 + (z-c)^2 = r^2" end def self.show_circle_help_message puts "The following methods are specific to a Circle (2-dimensions):" puts "#area" puts "#circumference" puts "#equation, which returns a string in the form of (x-a)^2 + (y-b)^2 = r^2" end end end
Version data entries
6 entries across 6 versions & 1 rubygems