Skip to content

Commit

Permalink
updated doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
RonenNess committed Jan 4, 2018
1 parent ef3f619 commit 5fca12d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ var vec = new Vector(10, 10);

### Basic usage example:

Here's a basic usage example - adding two vectors and print the result length:

```javascript
var v1 = new Vector(5, 10);
var v2 = new Vector(1, 1);
console.log(v1.add(v2).length())
> 12.529964086141668
var v1 = new Vector(5, 10);
var v2 = new Vector(1, 1);
console.log(v1.add(v2).length())
> 12.529964086141668
```

## Tests & Browser support
Expand Down

0 comments on commit 5fca12d

Please sign in to comment.