f3b2cf8c32
Co-authored-by: alhashij <alhashimy.janna@gmail.com> Reviewed-on: #9 Co-authored-by: Lance1416 <lanceli1416@gmail.com> Co-committed-by: Lance1416 <lanceli1416@gmail.com>
28 lines
692 B
C++
28 lines
692 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>& Points)
|
|
{
|
|
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
|
|
}
|