What Vector#normalize() method do exactly?

Discussion in 'Plugin Development' started by pretocki3, Nov 22, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    pretocki3

    Hello. I've seen many Particle plugin. And i can see normalize method.
    What that method do exactly? And what happen If I use normalize?
     
  2. Offline

    timtower Administrator Administrator Moderator

    @pretocki3 A vector has a length.
    If I have a vector with length 4000 and then call normalize then it will change so it will have a length of 1.
     
  3. Offline

    mythbusterma

    @pretocki3

    It makes the magnitude of the vector 1, while maintaining the direction.
     
Thread Status:
Not open for further replies.

Share This Page