processing / processing-website

Repository for the processing.org website
https://processing.org
GNU General Public License v2.0
60 stars 90 forks source link

Typos in PVector tutorial #464

Open farm402 opened 1 year ago

farm402 commented 1 year ago

I found a few formatting errors in the PVector tutorial (https://processing.org/tutorials/pvector):

“SPEED: xspeed and yspeed In a more advanced sketch, we could imagine this ball and world having many more properties:”

Should be something like (with a period and line-break):

SPEED: xspeed and yspeed. In a more advanced sketch, we could imagine this ball and world having many more properties:

Moving onto multiplication, we have to think a little bit differently. When we talk about multiplying a vector what we usually mean is scaling a vector. Maybe we want a vector to be twice its size or one-third its size, etc. In this case, we are saying “Multiply a vector by 2” or “Multiply a vector by 1/3&rquo;. Note we are multiplying a vector by a scalar, a single number, not another vector.

&rquo; should be: ”

The associative rule: (nm)v = n(mv) The distributive rule, 2 scalars, 1 vector: (n + m)v = nv + mv The distributive rule, 2 vectors, 1 scalar : (u +v)n = nu + nv

Line-breaks are missing.

In the (http://processing.org/reference/PVector.html)[**PVector**] class, we therefore write our normalization function as follows:

Link is broken.

trikaphundo commented 1 year ago

I took a look on the tutorial and found out another broken link. This and the one you mentioned are the only two broken links in that page.

You've probably done this before when programming motion. For every frame of animation (i.e. single cycle through Processing's ([http://processing.org/reference/draw_.html)draw()]]