Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clamp function #276

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add clamp function #276

wants to merge 1 commit into from

Commits on Feb 24, 2023

  1. Add clamp function

    This commit adds a new function ´clamp´ to the codebase. The clamp function takes a minimum value, a maximum value, and a value to be clamped, and returns the clamped value. The function is useful for constraining a value to a specific range, such as limiting a user input to a certain range of values. The function has been tested with several test cases to ensure that it works correctly.
    Marco-Christian Krenn committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    4084c0c View commit details
    Browse the repository at this point in the history