Agrarsense
CoordinateConversionUtilities.h
Go to the documentation of this file.
1// Copyright (c) 2023 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#pragma once
7
8#include "CoreMinimal.h"
9#include "Kismet/BlueprintFunctionLibrary.h"
10#include "GeoReferencingSystem.h"
11
12#include "CoordinateConversionUtilities.generated.h"
13
17UCLASS()
18class AGRARSENSE_API UCoordinateConversionUtilities : public UBlueprintFunctionLibrary
19{
20 GENERATED_BODY()
21
22public:
23
30 UFUNCTION(BlueprintCallable, Category = "Coordinate Conversion Utilities")
31 static FGeographicCoordinates UnrealToGeographicCoordinates(AGeoReferencingSystem* GeoReferencingSystem, const FVector& Position);
32
39 UFUNCTION(BlueprintCallable, Category = "Coordinate Conversion Utilities")
40 static FVector GeographicToUnrealCoordinates(AGeoReferencingSystem* GeoReferencingSystem, const FGeographicCoordinates& GeographicCoordinates);
41
42};