Yasiu Math
1
Collection of mathematic functions that help create game mechanics and procedural tools
Toggle main menu visibility
Loading...
Searching...
No Matches
BPFunLib_Rotation.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_Rotation.generated.h"
13
14
18
UCLASS(BlueprintType)
19
class
UYasiuMathFL_Rotation
: public
UYasiuMathFunctionLibrary
{
20
GENERATED_BODY()
21
22
23
public
:
37
UFUNCTION(BlueprintCallable, Category =
"YasiuMath|Angle"
)
38
static
double
ClipAngleToCycle
(
double
angle,
double
period );
39
49
UFUNCTION(BlueprintCallable, Category =
"YasiuMath|Angle"
)
50
static FVector
RotateBoundingBox
( const FVector& BoxSize, const FQuat& Rotation );
51
61
UFUNCTION(BlueprintCallable, Category =
"YasiuMath|Angle"
)
62
static FRotator
RotateCamera
(
63
const FRotator& CurrentRotator,
64
float
YawChange,
65
float
PitchChange,
66
const
float
PitchLimit = 85
67
);
68
};
YasiuMathBPLibrary.h
UYasiuMathFL_Rotation
BP Function library related to rotation and angles.
Definition
BPFunLib_Rotation.h:19
UYasiuMathFL_Rotation::RotateBoundingBox
static FVector RotateBoundingBox(const FVector &BoxSize, const FQuat &Rotation)
Rotate Box and calculate new bounding box along same axes to fix old box inside.213123.
UYasiuMathFL_Rotation::RotateCamera
static FRotator RotateCamera(const FRotator &CurrentRotator, float YawChange, float PitchChange, const float PitchLimit=85)
Adjust rotator yaw and pitch and keeps roll 0.
UYasiuMathFL_Rotation::ClipAngleToCycle
static double ClipAngleToCycle(double angle, double period)
Normalize angle to range <0, period>. Unit independent.
UYasiuMathFunctionLibrary
BP Function placeholder to group libraries in documentation.
Definition
YasiuMathBPLibrary.h:29
Source
YasiuMath
Public
YasiuMathBP
BPFunLib_Rotation.h
Generated by
1.17.0