Files
WizardingHub/Source/WizardingCentral/Utils/OneDollar/UniStrokeRecognizer.h
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

33 lines
713 B
C

// Copyright Team Lumi. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UniStrokeResult.h"
#include "UniStrokeTemplate.h"
#include "UniStrokeRecognizer.generated.h"
static constexpr int NumTemplates = 16;
static constexpr float AngleRange = FMath::DegreesToRadians(45.0);
static constexpr float AnglePrecision = FMath::DegreesToRadians(2.0);
USTRUCT()
struct WIZARDINGCENTRAL_API FUniStrokeRecognizer
{
GENERATED_BODY()
FUniStrokeRecognizer();
~FUniStrokeRecognizer();
FUniStrokeResult
Recognize(const TArray<FVector2D>& VectorPoints);
void
AddTemplate(const FString& Name, const TArray<FVector2D>& VectorPoints);
void
Reset();
TArray<FUniStrokeTemplate> Templates;
};