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

Function GetAngle

Source/PCGExtendedToolkit/Private/PCGExMath.cpp:242–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240 }
241
242 double GetAngle(const FVector& A, const FVector& B)
243 {
244 const FVector Cross = FVector::CrossProduct(A, B);
245 const double Atan2 = FMath::Atan2(Cross.Size(), A.Dot(B));
246 return Cross.Z < 0 ? TWO_PI - Atan2 : Atan2;
247 }
248
249 double GetRadiansBetweenVectors(const FVector& A, const FVector& B, const FVector& UpVector)
250 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected