struct
FRotator
- Module
- Math
- Header
#include "Math/FRotator.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
float | Pitch | Default 0. |
float | Yaw | Default 0. |
float | Roll | Default 0. |
Constructors
| Signature | Name | Description |
|---|---|---|
constexpr FRotator() = default | FRotator | |
constexpr FRotator(float pitch, float yaw, float roll) : Pitch(pitch), Yaw(yaw),… | FRotator |
Public functions
| Returns | Name | Description |
|---|---|---|
Quat | ToQuat | Convert to quaternion. |
FRotator | FromQuat | Build from quaternion. |
Vec3 | RotateVector | |
FRotator | operator+ | |
FRotator | operator- | |
FRotator | Normalised | Normalise each axis to [-180, 180] without altering orientation. |
Function details
FRotator
C++
constexpr FRotator() = defaultFRotator
C++
constexpr FRotator(float pitch, float yaw, float roll) : Pitch(pitch), Yaw(yaw), Roll(roll)ToQuat
C++
Quat ToQuat() constConvert to quaternion. Quat::FromEuler takes radians in (X, Y, Z) order, matching our (Pitch, Yaw, Roll) axis layout.
FromQuat
C++
static FRotator FromQuat(const Quat& q)Build from quaternion. Lossy at gimbal-lock (yaw ±90°).
RotateVector
C++
Vec3 RotateVector(const Vec3& v) constoperator+
C++
constexpr FRotator operator+(const FRotator& o) const noexceptoperator-
C++
constexpr FRotator operator-(const FRotator& o) const noexceptNormalised
C++
FRotator Normalised() constNormalise each axis to [-180, 180] without altering orientation.
Generated from Math/FRotator.h via math.json · Nov 4, 2026Version 1.0.0