|
Yasiu Math 1
Collection of mathematic functions that help create game mechanics and procedural tools
|
Collection of functions working with angles and rotation. More...
Functions | |
| template<typename T> | |
| static T | NormalizeAngleToPeriod (T angle, T period=360.f) |
| Normalize angle by removing full periods from value, result is in range <0, period>. | |
| 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. | |
Collection of functions working with angles and rotation.
|
static |
Normalize angle by removing full periods from value, result is in range <0, period>.
Angle normalization removes any excessive amount of periods from its value.
| FVector YASIUMATH_API YasiuMath::AngleUtils::RotateBoundingBox | ( | const FVector & | Box, |
| const FQuat & | Rotation ) |
Rotate Box and calculate new bounding box along same axes to fit old box inside.
Helps find suboptimal bounding box for rotated meshes
| Box | Dimension of Bounding box |
| Rotation | Rotation to calculate |