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