| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected