Yasiu Math 1
Collection of mathematic functions that help create game mechanics and procedural tools
Loading...
Searching...
No Matches
BPFunLib_Algebra.h
1/*
2 * Copyright (c) 2026 Grzegorz Krug.
3 * All Rights Reserved.
4 */
5
6#pragma once
7
8
10
11
12#include "BPFunLib_Algebra.generated.h"
13
14
18UCLASS(BlueprintType)
20 GENERATED_BODY()
21
22
23public:
35 UFUNCTION(BlueprintCallable, BlueprintPure, Category="YasiuMath|Algebra", meta=(DisplayName="Remap"))
36 static float RemapFloat( const float Value, float MinIn, float MaxIn, float MinOut, float MaxOut, bool ClampOut = true );
37
49 UFUNCTION(BlueprintCallable, BlueprintPure, Category="YasiuMath|Algebra", meta=(DisplayName="Remap"))
50 static double RemapDouble(
51 const double Value,
52 double MinIn,
53 double MaxIn,
54 double MinOut,
55 double MaxOut,
56 bool ClampOut = true
57 );
58
70 UFUNCTION(BlueprintCallable, BlueprintPure, Category="YasiuMath|Algebra", meta=(DisplayName="Remap"))
71 static FVector RemapVector(
72 const FVector& Value,
73 double MinIn,
74 double MaxIn,
75 double MinOut,
76 double MaxOut,
77 bool ClampOut = true
78 );
79};
BP Function library: common linear algebra problems.
Definition BPFunLib_Algebra.h:19
static double RemapDouble(const double Value, double MinIn, double MaxIn, double MinOut, double MaxOut, bool ClampOut=true)
Remap double value to given range with optional clamping.
static FVector RemapVector(const FVector &Value, double MinIn, double MaxIn, double MinOut, double MaxOut, bool ClampOut=true)
Remap vector value to given range with optional clamping.
static float RemapFloat(const float Value, float MinIn, float MaxIn, float MinOut, float MaxOut, bool ClampOut=true)
Remap float value to given range with optional clamping.
BP Function placeholder to group libraries in documentation.
Definition YasiuMathBPLibrary.h:29