MCPcopy Create free account
hub / github.com/PCGEx/PCGExtendedToolkit / Direction

Function Direction

Source/PCGExtendedToolkit/Public/PCGExMath.h:70–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69 FClosestPosition() = default;
70 explicit FClosestPosition(const FVector& InOrigin);
71 FClosestPosition(const FVector& InOrigin, const FVector& InLocation);
72 FClosestPosition(const FVector& InOrigin, const FVector& InLocation, const int32 InIndex);
73
74 bool Update(const FVector& InLocation);
75 bool Update(const FVector& InLocation, const int32 InIndex);
76
77 FVector Direction() const { return (Origin - Location).GetSafeNormal(); }
78
79 friend bool operator<(const FClosestPosition& A, const FClosestPosition& B) { return A.DistSquared < B.DistSquared; }
80 friend bool operator>(const FClosestPosition& A, const FClosestPosition& B) { return A.DistSquared > B.DistSquared; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected