Skip to content

Commit

Permalink
README: Document vector-scalar division
Browse files Browse the repository at this point in the history
  • Loading branch information
nbraud committed Dec 20, 2018
1 parent cb8176b commit 779585f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ Multiply a `Vector2` by a scalar to get a scaled `Vector2`:
>>> Vector2(1, 1).scale_by(3)
Vector2(3.0, 3.0)


It is also possible to divide a `Vector2` by a scalar:

>>> Vector2(3, 3) / 3
Vector2(1.0, 1.0)

### Dot Product

Multiply a `Vector2` by another `Vector2` to get the dot product.
Expand Down

0 comments on commit 779585f

Please sign in to comment.