Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <QVector>
|
||||
#include <QVector3D>
|
||||
|
||||
struct TrajectoryPoint
|
||||
{
|
||||
QVector3D position;
|
||||
double time;
|
||||
};
|
||||
|
||||
class TrajectoryWarp
|
||||
{
|
||||
public:
|
||||
static QVector<TrajectoryPoint> warpToNewTarget(
|
||||
const QVector<TrajectoryPoint>& original,
|
||||
const QVector3D& newTarget
|
||||
);
|
||||
|
||||
private:
|
||||
static double smoothStep(double x);
|
||||
};
|
||||
Reference in new issue
Block a user