We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I understand vector.div(2)
But what does div(2) do?
https://Processing.org/reference/PVector_div_.html
Yes I saw that, but Im looking at code that looks like this:
void normalize() { float m = mag(); div(m); }
from http://natureofcode.com/book/chapter-1-vectors/
Processing API's doesn't have any function called div(): https://Processing.org/reference/
Answers
https://Processing.org/reference/PVector_div_.html
Yes I saw that, but Im looking at code that looks like this:
from http://natureofcode.com/book/chapter-1-vectors/
Processing API's doesn't have any function called div(): https://Processing.org/reference/