Range and stdDraw - NoaAizer/OOP_Ex1 GitHub Wiki

Range:

This class represents a simple 1D range of shape [min,max].

The functions-

Constructors:
A constructor that gets min and max and sets them.

isIn- Checks if a given distance is in this range.

toString- Prints to user the range in the format of [min,max].

isEmpty- checks if the this max < this min, meaning the range is empty.

Getters and setters:
• get_max
• get_min
• set_max
• set_min

stdDraw:

We are using this given class to draw function on Functions_GUI.

⚠️ **GitHub.com Fallback** ⚠️