How to change Decal's rotation at runtime relative to the floor or wall? C++

Would this be a likely way of creating the function?
FVector ABase::CrossProduct(FVector Product1, FVector Product2) { ReturnProduct.CrossProduct(Product2, Product1).Normalize(); return ReturnProduct; }