Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Draw drawVector arg from => fromOrDirection
Browse files Browse the repository at this point in the history
  • Loading branch information
automat committed Aug 14, 2015
1 parent dde0ae4 commit 0c79bdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,12 +966,12 @@ Draw.prototype.drawQuat = function(){

};

Draw.prototype.drawVector = function(from,to,headLength,headRadius){
Draw.prototype.drawVector = function(fromOrDirection,to,headLength,headRadius){
if(to === undefined){
this.drawVector6(0,0,0,from[0],from[1],from[2]);
this.drawVector6(0,0,0,fromOrDirection[0],fromOrDirection[1],fromOrDirection[2]);
return;
}
this.drawVector6(from[0],from[1],from[2],to[0],to[1],to[2],headLength,headRadius);
this.drawVector6(fromOrDirection[0],fromOrDirection[1],fromOrDirection[2],to[0],to[1],to[2],headLength,headRadius);
};

Draw.prototype.drawVector6 = function(x0,y0,z0,x1,y1,z1,headLength,headRadius){
Expand Down

0 comments on commit 0c79bdd

Please sign in to comment.