Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions content/tutorials/text/pvector/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ In the above example, we have a very simple world -- a blank canvas with a circu

- LOCATION: x and y
- SPEED: xspeed and yspeed
<br/>
In a more advanced sketch, we could imagine this ball and world having many more properties:
- ACCELERATION: xacceleration and yacceleration
- TARGET LOCATION: xtarget and ytarget
Expand Down Expand Up @@ -410,9 +411,9 @@ void draw() {
Both addition and subtraction with vectors follows the same algebraic rules as with real numbers.

The commutative rule: **u** + **v** = **v** + **u**

<br/>
The associative rule: **u** + (**v** + **w**) = (**u** + **v**) + **w**

<br/>
The fancy terminology and symbols aside, this is really quite a simple concept. We're just saying that common sense properties of addition apply with vectors as well.

3 + 2 = 2 + 3
Expand Down Expand Up @@ -522,7 +523,9 @@ u.div(2);
As with addition, basic algebraic rules of multiplication and division apply to vectors.

The associative rule: (n\*m)**\*v** = n\*(m**\*v**)
<br/>
The distributive rule, 2 scalars, 1 vector: (n + m)**\*v** = n**\*v** + m**\*v**
<br/>
The distributive rule, 2 vectors, 1 scalar : (**u** +**v**)\*n = n**\*u** + n**\*v**

</HighlightBlock>
Expand Down