Skip to content

Typos in PVector tutorial #464

Open
@farm402

Description

@farm402

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions