Yasiu Math 1
Collection of mathematic functions that help create game mechanics and procedural tools
Loading...
Searching...
No Matches
YasiuMath::Algebra Namespace Reference

Linear algebra problems. More...

Functions

template<typename T>
T Remap (const T Value, const T InMin, const T InMax, T OutMin, T OutMax, const bool ClampOutput=false)
 Remaps Value between input range to output range with optional clamping.
FVector YASIUMATH_API RemapVector (const FVector &Input, const FVector2d &InputRange, const FVector2d &OutputRange, const bool ClampOutput)
 Remaps Value between input range to output range with optional clamping.
FVector3f YASIUMATH_API RemapVector (const FVector3f &Input, const FVector2f &InputRange, const FVector2f &OutputRange, const bool ClampOutput)
 Remaps Value between input range to output range with optional clamping.

Detailed Description

Linear algebra problems.

Function Documentation

◆ Remap()

template<typename T>
T YasiuMath::Algebra::Remap ( const T Value,
const T InMin,
const T InMax,
T OutMin,
T OutMax,
const bool ClampOutput = false )

Remaps Value between input range to output range with optional clamping.

Template Parameters
Tnumeric type
Parameters
ValueInput value
InMinInput range low value
InMaxInput range high value
OutMinOutput range low value
OutMaxOutput range high value
ClampOutputFlag to clamp output
Returns
Value

◆ RemapVector() [1/2]

FVector YASIUMATH_API YasiuMath::Algebra::RemapVector ( const FVector & Input,
const FVector2d & InputRange,
const FVector2d & OutputRange,
const bool ClampOutput )

Remaps Value between input range to output range with optional clamping.

Parameters
InputInput value
InputRangeInput range vector consisting of <Low, High>
OutputRangeOutput range vector consisting of <Low, High>
ClampOutputFlag to clamp output
Returns
Value

◆ RemapVector() [2/2]

FVector3f YASIUMATH_API YasiuMath::Algebra::RemapVector ( const FVector3f & Input,
const FVector2f & InputRange,
const FVector2f & OutputRange,
const bool ClampOutput )

Remaps Value between input range to output range with optional clamping.

Parameters
InputInput value
InputRangeInput range vector consisting of <Low, High>
OutputRangeOutput range vector consisting of <Low, High>
ClampOutputFlag to clamp output
Returns
Value