28 lines
684 B
C++
28 lines
684 B
C++
#include "UniStrokeTemplate.h"
|
|
|
|
FUniStrokeTemplate::FUniStrokeTemplate()
|
|
{
|
|
this->Name = "";
|
|
this->Vector = TArray<float>();
|
|
this->Points = TArray<FUniStrokePoint>();
|
|
}
|
|
|
|
FUniStrokeTemplate::FUniStrokeTemplate(const FString& Name,
|
|
const TArray<FUniStrokePoint>)
|
|
{
|
|
this->Name = Name;
|
|
this->Points = Points;
|
|
|
|
FUniStrokePoint::Resample(this->Points, NumPoints);
|
|
FUniStrokePoint::RotateToZero(this->Points);
|
|
FUniStrokePoint::ScaleToSquare(this->Points, SquareSize);
|
|
FUniStrokePoint::TranslateToOrigin(this->Points);
|
|
|
|
this->Vector = FUniStrokePoint::Vectorize(this->Points);
|
|
}
|
|
|
|
FUniStrokeTemplate::~FUniStrokeTemplate()
|
|
{
|
|
// DO NOTHING
|
|
}
|