-
Notifications
You must be signed in to change notification settings - Fork 0
/
CDAA.h
45 lines (34 loc) · 921 Bytes
/
CDAA.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef COLIN_CDAA_H
#define COLIN_CDAA_H
/*
==============================================================================
CDAA.h
Created: 13 Mar 2023 4:36:40pm
Author: Colin Raab
==============================================================================
*/
#include <math.h>
#include <JuceHeader.h>
#include <vector>
namespace Colin {
class Bezier {
public:
Bezier() = default;
Bezier(uint32_t points);
~Bezier() = default;
Bezier(const Bezier& bezier) = default;
void setNumberOfPoints(const uint32_t& points);
void calcPoints(std::vector<juce::Point<float>> points);
juce::Point<float>* getPoint(const uint32_t& index);
private:
std::vector<juce::Point<float>> bezierVector;
};
class CDAA {
public:
CDAA() = default;
~CDAA() = default;
void setBezier(Bezier bezier);
private:
};
}
#endif