Yasiu Math
1
Collection of mathematic functions that help create game mechanics and procedural tools
Toggle main menu visibility
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
9
#include "
YasiuMathBP//YasiuMathBPLibrary.h
"
10
11
12
#include "BPFunLib_Algebra.generated.h"
13
14
18
UCLASS(BlueprintType)
19
class
UYasiuMathFL_Algebra
: public
UYasiuMathFunctionLibrary
{
20
GENERATED_BODY()
21
22
23
public
:
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
};
YasiuMathBPLibrary.h
UYasiuMathFL_Algebra
BP Function library: common linear algebra problems.
Definition
BPFunLib_Algebra.h:19
UYasiuMathFL_Algebra::RemapDouble
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.
UYasiuMathFL_Algebra::RemapVector
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.
UYasiuMathFL_Algebra::RemapFloat
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.
UYasiuMathFunctionLibrary
BP Function placeholder to group libraries in documentation.
Definition
YasiuMathBPLibrary.h:29
Source
YasiuMath
Public
YasiuMathBP
BPFunLib_Algebra.h
Generated by
1.17.0