Added linear interpolation (Lerp) to math module
Former-commit-id: 5920e21f25d42701a1895734eca492fdf5351669
This commit is contained in:
@@ -47,6 +47,8 @@ class NzRect
|
||||
T& operator[](unsigned int i);
|
||||
T operator[](unsigned int i) const;
|
||||
|
||||
static NzRect Lerp(const NzRect& from, const NzRect& to, T interpolation);
|
||||
|
||||
T x, y, width, height;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user