TMatrix::TransformVector

Transform a direction vector - will not take into account translation part of the TMatrix.

Choose your operating system:

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

TVector4< T > TransformVector
(
    const TVector< T > & V
) const

Remarks

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