Skip to content

@fibbojs / util / FMathUtil

Class: FMathUtil

A class that provides math utilities.

Constructors

new FMathUtil()

new FMathUtil(): FMathUtil

Returns

FMathUtil

Methods

degreeToRad()

static degreeToRad(degree): number

Convert an euler angle to a radian angle.

Parameters

degree: number

The euler angle to convert.

Returns

number

The radian angle.

Defined in

util/src/FMathUtil.ts:22


quaternionToRad()

static quaternionToRad(quaternion): FVector3

Convert a value from quaternion to a radian angle.

Parameters

quaternion: FVector4

The quaternion value to convert.

Returns

FVector3

The radian angle.

Defined in

util/src/FMathUtil.ts:31


radToDegree()

static radToDegree(radian): number

Convert a radian angle to a euler angle.

Parameters

radian: number

The radian angle to convert.

Returns

number

The euler angle.

Defined in

util/src/FMathUtil.ts:13