RealDocs

15 results for "math"

struct
FMath Core

The primary math utility struct in Unreal Engine, providing static functions for arithmetic, interpolation, trigonometry, random number generation, and geometric operations.

function
FMath::Abs Core

Returns the absolute (non-negative) value of A.

function
FMath::Atan2 Core

Returns the angle in radians between the positive X axis and the point (X, Y), in the range [-π, π].

function
FMath::Clamp Core

Clamps a value between a minimum and maximum, inclusive on both ends.

function
FMath::Cos Core

Returns the cosine of an angle given in radians.

function
FMath::FInterpTo Core

Smoothly moves a float toward a target value at a given speed, independent of frame rate.

function
FMath::GetMappedRangeValueClamped Core

Maps a value from one range to another, clamping the input to the source range first.

function
FMath::IsNearlyEqual Core

Returns true if two floating-point numbers are within a given absolute tolerance of each other.

function
FMath::IsNearlyZero Core

Returns true if a floating-point value is within ErrorTolerance of zero.

function
FMath::Lerp Core

Linearly interpolates between two values.

function
FMath::RandRange Core

Returns a random integer in the inclusive range [Min, Max].

function
FMath::Sin Core

Returns the sine of an angle given in radians.

function
FMath::Sqrt Core

Returns the square root of Value.

function
FMath::Square Core

Returns A * A.

function
FMath::VInterpTo Core

Smoothly moves an FVector toward a target vector at a given speed, independently on each axis, frame-rate-independently.