Files
WizardingHub/Source/WizardingCentral/Utils/OneDollar/UniStrokeTemplate.cpp
T
lance1416 f3b2cf8c32 Add Basic Spell System (#9)
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>
2025-05-22 01:44:20 -04:00

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
}