Change analog stick circulator mapping to a square

I would like to change the mapping so the analog stick can use the entire blendspace range. Is there a way to do this? Maybe there is another way?

I found this but i don’t know how to make a c++ function.