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

But is the way I am using this function correct?
This is a non static function that calculates the cross product of both vectors and returns a value.