forked from hsstraub/TerpstraSysEx.2014
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor common functions into library
- Loading branch information
1 parent
2d66b10
commit a1a5a20
Showing
9 changed files
with
325 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
============================================================================== | ||
CommonFunctions.h | ||
Created: 17 Jun 2020 9:54:26pm | ||
Author: Vincenzo Sicurella | ||
============================================================================== | ||
*/ | ||
|
||
#ifndef LUMATONE_EDITOR_LIBRARY_DATA_H | ||
#define LUMATONE_EDITOR_LIBRARY_DATA_H | ||
|
||
#include <JuceHeader.h> | ||
|
||
template <class T> | ||
struct PointPair | ||
{ | ||
juce::Point<T> x, y; | ||
|
||
PointPair() {} | ||
PointPair(juce::Point<T> xIn, juce::Point<T> yIn) | ||
{ | ||
x = xIn; | ||
y = yIn; | ||
}; | ||
PointPair(T x1, T y1, T x2, T y2) | ||
{ | ||
x = juce::Point<T>(x1, y1); | ||
y = juce::Point<T>(x2, y2); | ||
} | ||
}; | ||
|
||
#endif // LUMATONE_EDITOR_LIBRARY_DATA_H |
Oops, something went wrong.