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>
33 lines
713 B
C
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;
|
|
};
|