Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typos in PVector tutorial #464

Open
farm402 opened this issue Jul 7, 2023 · 1 comment
Open

Typos in PVector tutorial #464

farm402 opened this issue Jul 7, 2023 · 1 comment

Comments

@farm402
Copy link

farm402 commented Jul 7, 2023

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.

@farm402 farm402 changed the title Typo PVector tutorial Typos in PVector tutorial Jul 7, 2023
@trikaphundo
Copy link
Contributor

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()]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants