Skip to content

Commit

Permalink
version 0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkueng committed Sep 28, 2014
1 parent 8b1303a commit 9d1fd3a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bower.json
@@ -1,11 +1,11 @@
{
u
"name": "victor",
"main": "build/victor.js",
"repository": {
"type": "git",
"url": "git://github.com/maxkueng/victor.git"
},
"version": "0.2.4",
"version": "0.2.5",
"homepage": "https://github.com/maxkueng/victor",
"authors": [
"Max Kueng (http://maxkueng.com/)",
Expand Down
20 changes: 20 additions & 0 deletions documentation/api.md
Expand Up @@ -652,6 +652,26 @@ Calculates the dot product of this vector and another

* **Number** Dot product

## projectOnto(vector)

Projects a vector onto another vector, setting itself to the result.

### Examples:
var vec = new Victor(100, 0);
var vec2 = new Victor(100, 100);

vec.projectOnto(vec2);
vec.toString();
// => x:50, y:50

### Params:

* **Victor** *vector* The other vector you want to project this vector onto

### Return:

* **Victor** `this` for chaining capabilities

## distanceX(vector)

Calculates the distance of the X axis between this vector and another
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "victor",
"version": "0.2.4",
"version": "0.2.5",
"description": "A JavaScript 2D vector class with methods for common vector operations",
"keywords": [
"vector",
Expand Down

0 comments on commit 9d1fd3a

Please sign in to comment.