FQuat2D::TransformPoint

Transform a 2D point by the 2D complex number representing the rotation: In imaginary land: (x + yi) * (u + vi) == (xu - yv) + (xv + yu)i

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/TransformCalculus2D.h"

Syntax

FVector2D TransformPoint
(
    const FVector2D & Point
) const

Remarks

Transform a 2D point by the 2D complex number representing the rotation: In imaginary land: (x + yi) * (u + vi) == (xu - yv) + (xv + yu)i

Looking at this as a matrix, x == cos(A), y == sin(A)

[x y] * [ cosA sinA] == [x y] * [ u v] == [xu-yv xv+yu] [-sinA cosA] [-v u]

Looking at the above results, we see the equivalence with matrix multiplication.

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