FMatrix::TransformVector

Transform a direction vector - will not take into account translation part of the [FMatrix](API\Runtime\Core\Math\FMatrix).

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Matrix.h"

Source

/Engine/Source/Runtime/Core/Public/Math/Matrix.inl

Syntax

FVector4 TransformVector
(
    const FVector & V
) const

Remarks

Transform a direction vector - will not take into account translation part of the FMatrix. If you want to transform a surface normal (or plane) and correctly account for non-uniform scaling you should use TransformByUsingAdjointT.

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