Blueprint function to c++

Hi i need help to convert this blue print to c++

my idea is this:

h

void Construccion(FVector Origen,FVector& Destino);

.cpp

void Personaje::Construccion(FVector Origen,FVector& Destino){
Origen.X = (int)(Origen.X/400)*400;
Origen.Y = (int)(Origen.Y/400)*400;
Origen.Z = (int)(Origen.Z/400)*400;
}

and how would you call it to spaw an object

void Character::SpawnObject(){
//How call function Construccion

      Construccion();
      ()->SpawnActor(object,pos,rot);

}

You mean you want to call it on spawned object?