VectorQuaternionMultiply

Multiplies two quaternions; the order matters.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/UnrealMathNeon.h

Include

#include "Math/UnrealMathNeon.h"

Syntax

void VectorQuaternionMultiply
(
    void *RESTRICT Result,
    const void *RESTRICT Quat1,
    const void *RESTRICT Quat2
)

Remarks

Multiplies two quaternions; the order matters.

When composing quaternions: VectorQuaternionMultiply(C, A, B) will yield a quaternion C = A * B that logically first applies B then A to any subsequent transformation (right first, then left).

Parameters

Parameter

Description

Result

Pointer to where the result Quat1 * Quat2 should be stored

Quat1

Pointer to the first quaternion (must not be the destination)

Quat2

Pointer to the second quaternion (must not be the destination)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss