updated makefile for supporting different target architectures
use "ARCH=arch_name make" restructured project folder, implementations and headers together under sources/
This commit is contained in:
21
sources/GL_STUFF/CURVES/Hermite.hpp
Executable file
21
sources/GL_STUFF/CURVES/Hermite.hpp
Executable file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include "./Curve.hpp"
|
||||
|
||||
enum class HermiteModes {
|
||||
Basic,
|
||||
Direct,
|
||||
Cardinal,
|
||||
TBC
|
||||
};
|
||||
|
||||
class Hermite : public Curve {
|
||||
private:
|
||||
vector<glm::vec3> derivatives;
|
||||
glm::vec3 evaluateCubic(float t, float t1, float t2, glm::vec3 y1, glm::vec3 y2, glm::vec3 dy1, glm::vec3 dy2);
|
||||
|
||||
public:
|
||||
void computeDerivatives(HermiteModes mode, vector<glm::vec3> auxData);
|
||||
Hermite(vector<glm::vec3> *points, vector<float> *intervals);
|
||||
glm::vec3 evaluate(float at);
|
||||
glm::vec3 derivate(float at);
|
||||
};
|
||||
Reference in New Issue
Block a user