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