Global Namespace
                    
                

Namespaces

Classes

Functions

            
double sum_of_areas(const Shape & shape1, const Shape & shape2)
            
        

brief

Helper function to calculate the sum of the areas of two shapes.

            
double circumference(double radius)
            
        

brief

Helper function to calculate the circumference of a circle.

            
int factorial(int n)
            
        

brief

Helper function to calculate the factorial of a number.

            
double diameter(double radius)
            
        

brief

Helper function to calculate the diameter of a circle.

            
int fibonacci(int n)
            
        

brief

Helper function to calculate the nth Fibonacci number.

            
int fibonacci_recursive(int n)
            
        

brief

Helper function to calculate the nth Fibonacci number using a recursive algorithm.

            
double diagonal(double width, double height)
            
        

brief

Helper function to calculate the diagonal of a rectangle.

            
double aspect_ratio(double width, double height)
            
        

brief

Helper function to calculate the aspect ratio of a rectangle.

Enumerations

            
enum class Shapes
            
        
Name Value Comment
Circle 0

Comment 1

Rectangle 1

Comment 2

Triangle 2

Comment 3

brief

Shapes enum class for basic shapes.

Defined on line 70 at Calculator.h
            
enum Vegetables
            
        
Name Value Comment
Tomato 0

Comment 1

Potato 1

Comment 2

Carrot 2

Comment 3

brief

Vegatables enum for basic vegetables.

Defined on line 82 at Calculator.h