/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h
Builds a matrix with given Z and Y axes. Z will remain fixed, Y may be changed minimally to enforce orthogonality. X will be computed. Inputs need not be normalized.
static FRotator MakeRotFromZY ( const FVector & Z, const FVector & Y )