Reverse magnitude

fadamionfadamion Member, PRO Posts: 309
edited March 2015 in Working with GS (Mac)

I need to take magnitude and reverse it. So say when I'm far away from an object it is 100 as i get close it is 1 this is how it works normaly. But I need the opposite as i get closer the number gets bigger. I know there will be a negative if i go to far but thats fine. And i guess about 100 as I'm in the center is fine.

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2015

    100 - magnitude

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    100-magnitude(x1-x2,y1-y2)

  • fadamionfadamion Member, PRO Posts: 309

    Thanks tatiang i was doing the -100 after and it did not work thanks a million. :)

  • fadamionfadamion Member, PRO Posts: 309

    also you can close this thread i guess i put it as a discussion instead of question

This discussion has been closed.