class

MMathStatics

Module
Game
Header
#include "Game/MMathStatics.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Public functions

ReturnsNameDescription
floatFInterpToA non-positive speed snaps to the target (UE's convention).
Vec3VInterpTo
floatFInterpConstantToConstant-rate approach — moves at interpSpeed units per second and never overshoots.
floatAngleInterpToShortest-path angular approach, so easing 350° toward 10° goes forward through 0 instead of the long way round.
floatMapRangeRe-ranges a value; a zero-width input range returns outMin rather than dividing by zero.
floatNormalizeAngleWraps to (-180, 180].
floatDeltaAngleSigned shortest rotation from one angle to the other, in (-180, 180].
floatAngleBetweenUnsigned angle between two directions, in [0, 180].
floatDotProduct
Vec3CrossProduct
floatVectorLength
Vec3NormalizeVector
Vec3VectorLerp
Vec3DirectionBetweenUnit vector from one point toward another; zero when they coincide.
Vec3RotationFromDirectionEuler degrees that face direction (the rotation form of a look-at), and its inverse.
Vec3DirectionFromRotation
Vec3RandomPointInRadiusUniform point in a horizontal disc around origin — the spawn-scatter and wander-target primitive.
Vec3RotateVectorRotators are euler degrees (pitch x, yaw y, roll z) everywhere a graph sees them; the quaternion stays inside.
Vec3UnrotateVector
Vec3ComposeRotations
Vec3InverseRotation
Vec3RotationLerp
Vec3ReflectVector
Vec3ProjectVectorOnPlane
Vec3ClampVectorLength
floatDistanceXZ
floatSignedAngleBetween
FTransformMakeTransformTransforms travel as a struct pin; these are its Make and Break, the way a Blueprint splits one, plus the operations a graph otherwise has no form for.
voidBreakTransform
FTransformComposeTransforms
Vec3TransformLocation
Vec3TransformDirection
FRotatorMakeRotator
QuatRotatorToQuat
FRotatorQuatToRotator

Function details

FInterpTo

C++
float FInterpTo(float current, float target, float deltaSeconds, float interpSpeed) const

A non-positive speed snaps to the target (UE's convention).

VInterpTo

C++
Vec3 VInterpTo(const Vec3& current, const Vec3& target, float deltaSeconds, float interpSpeed) const

FInterpConstantTo

C++
float FInterpConstantTo(float current, float target, float deltaSeconds, float interpSpeed) const

Constant-rate approach — moves at interpSpeed units per second and never overshoots.

AngleInterpTo

C++
float AngleInterpTo(float currentDegrees, float targetDegrees, float deltaSeconds, float interpSpeed) const

Shortest-path angular approach, so easing 350° toward 10° goes forward through 0 instead of the long way round.

MapRange

C++
float MapRange(float value, float inMin, float inMax, float outMin, float outMax) const

Re-ranges a value; a zero-width input range returns outMin rather than dividing by zero.

NormalizeAngle

C++
float NormalizeAngle(float degrees) const

Wraps to (-180, 180].

DeltaAngle

C++
float DeltaAngle(float fromDegrees, float toDegrees) const

Signed shortest rotation from one angle to the other, in (-180, 180].

AngleBetween

C++
float AngleBetween(const Vec3& a, const Vec3& b) const

Unsigned angle between two directions, in [0, 180].

DotProduct

C++
float DotProduct(const Vec3& a, const Vec3& b) const

CrossProduct

C++
Vec3 CrossProduct(const Vec3& a, const Vec3& b) const

VectorLength

C++
float VectorLength(const Vec3& v) const

NormalizeVector

C++
Vec3 NormalizeVector(const Vec3& v) const

VectorLerp

C++
Vec3 VectorLerp(const Vec3& a, const Vec3& b, float alpha) const

DirectionBetween

C++
Vec3 DirectionBetween(const Vec3& from, const Vec3& to) const

Unit vector from one point toward another; zero when they coincide.

RotationFromDirection

C++
Vec3 RotationFromDirection(const Vec3& direction) const

Euler degrees that face direction (the rotation form of a look-at), and its inverse. Round-trips through the same +Z-forward, +Y-up basis the actor accessors use.

DirectionFromRotation

C++
Vec3 DirectionFromRotation(const Vec3& degrees) const

RandomPointInRadius

C++
Vec3 RandomPointInRadius(const Vec3& origin, float radius) const

Uniform point in a horizontal disc around origin — the spawn-scatter and wander-target primitive. (Scalar ranged randoms are already Pure ops; only the vector-shaped form was missing.)

RotateVector

C++
Vec3 RotateVector(const Vec3& v, const Vec3& degrees) const

Rotators are euler degrees (pitch x, yaw y, roll z) everywhere a graph sees them; the quaternion stays inside.

UnrotateVector

C++
Vec3 UnrotateVector(const Vec3& v, const Vec3& degrees) const

ComposeRotations

C++
Vec3 ComposeRotations(const Vec3& aDegrees, const Vec3& bDegrees) const

InverseRotation

C++
Vec3 InverseRotation(const Vec3& degrees) const

RotationLerp

C++
Vec3 RotationLerp(const Vec3& aDegrees, const Vec3& bDegrees, float alpha) const

ReflectVector

C++
Vec3 ReflectVector(const Vec3& v, const Vec3& normal) const

ProjectVectorOnPlane

C++
Vec3 ProjectVectorOnPlane(const Vec3& v, const Vec3& normal) const

ClampVectorLength

C++
Vec3 ClampVectorLength(const Vec3& v, float maxLength) const

DistanceXZ

C++
float DistanceXZ(const Vec3& a, const Vec3& b) const

SignedAngleBetween

C++
float SignedAngleBetween(const Vec3& from, const Vec3& to, const Vec3& axis) const

MakeTransform

C++
FTransform MakeTransform(const Vec3& location, const Quat& rotation, const Vec3& scale) const

Transforms travel as a struct pin; these are its Make and Break, the way a Blueprint splits one, plus the operations a graph otherwise has no form for. A rotator travels as (pitch, yaw, roll) in degrees on a vector pin.

BreakTransform

C++
void BreakTransform(const FTransform& transform, Vec3& location, Quat& rotation, Vec3& scale) const

ComposeTransforms

C++
FTransform ComposeTransforms(const FTransform& parent, const FTransform& child) const

TransformLocation

C++
Vec3 TransformLocation(const FTransform& transform, const Vec3& location) const

TransformDirection

C++
Vec3 TransformDirection(const FTransform& transform, const Vec3& direction) const

MakeRotator

C++
FRotator MakeRotator(float pitch, float yaw, float roll) const

RotatorToQuat

C++
Quat RotatorToQuat(const FRotator& rotator) const

QuatToRotator

C++
FRotator QuatToRotator(const Quat& rotation) const
Generated from Game/MMathStatics.h via game.json · Nov 5, 2026Version 1.0.0