Yasiu Math 1
Collection of mathematic functions that help create game mechanics and procedural tools
Loading...
Searching...
No Matches
YasiuMathUnrealLib.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Grzegorz Krug.
3 * All Rights Reserved.
4 */
5
6/* File for used in C++ but requires unreal variables or objects. */
7
9
10#pragma once
11
12
13#include "Math/MathFwd.h"
14
15
16namespace YasiuMath {
17 namespace Rotation {
27 FVector YASIUMATH_API RotateBoundingBox( const FVector& Box, const FQuat& Rotation );
28
37 void YASIUMATH_API RotateCameraWithoutRoll(
38 FRotator& CurrentRotator,
39 float YawChange,
40 float PitchChange,
41 const float PitchLimit = 85
42 );
43 }
44
45
46 namespace Algebra {
55 FVector YASIUMATH_API RemapVector(
56 const FVector& Input,
57 const FVector2d& InputRange,
58 const FVector2d& OutputRange,
59 const bool ClampOutput
60 );
61
70 FVector3f YASIUMATH_API RemapVector(
71 const FVector3f& Input,
72 const FVector2f& InputRange,
73 const FVector2f& OutputRange,
74 const bool ClampOutput
75 );
76 }
77}
Linear algebra problems.
Definition YasiuMathLib.h:1009
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.
Manipulation of rotation or angles.
Definition YasiuMathLib.h:45
FVector YASIUMATH_API RotateBoundingBox(const FVector &Box, const FQuat &Rotation)
Rotate Box and calculate new bounding box along same axes to fit old box inside.
void YASIUMATH_API RotateCameraWithoutRoll(FRotator &CurrentRotator, float YawChange, float PitchChange, const float PitchLimit=85)
Adjust rotator yaw and pitch and keeps roll 0.
Categorized name spaces.
Definition Constants.h:10