-
-
Notifications
You must be signed in to change notification settings - Fork 353
Expand file tree
/
Copy pathMathUtils.h
More file actions
18 lines (15 loc) · 630 Bytes
/
MathUtils.h
File metadata and controls
18 lines (15 loc) · 630 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*---------------------------------------------------------*\
| MathUtils.h |
| |
| Math utility functions |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
#include <stdint.h>
class MathUtils
{
public:
static int IntInterpolate(int y0, int y1, int x0, int x1, int x);
};