removing the libft of rparodi
This commit is contained in:
parent
0391323626
commit
be6038dcc8
523 changed files with 724 additions and 3336 deletions
|
|
@ -1,38 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_torange.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/16 14:51:08 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/05/16 15:04:23 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
int ft_clamp(int value, int min, int max)
|
||||
{
|
||||
if (value < min)
|
||||
return (min);
|
||||
else if (value > max)
|
||||
return (max);
|
||||
return (value);
|
||||
}
|
||||
|
||||
float ft_clamp_f(float value, float min, float max)
|
||||
{
|
||||
if (value < min)
|
||||
return (min);
|
||||
else if (value > max)
|
||||
return (max);
|
||||
return (value);
|
||||
}
|
||||
|
||||
double ft_clamp_d(double value, double min, double max)
|
||||
{
|
||||
if (value < min)
|
||||
return (min);
|
||||
else if (value > max)
|
||||
return (max);
|
||||
return (value);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue