Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
Rename function scale to scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
LeleVic committed May 11, 2015
1 parent 2c4bdea commit d8eff29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Common/MV.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ function perspective( fovy, aspect, near, far )
{
var f = 1.0 / Math.tan( radians(fovy) / 2 );
var d = far - near;
//var d = near - far;

var result = mat4();
result[0][0] = f / aspect;
Expand Down Expand Up @@ -599,7 +600,7 @@ function mix( u, v, s )
// Vector and Matrix functions
//

function scale( s, u )
function scalar( s, u )
{
if ( !Array.isArray(u) ) {
throw "scale: second parameter " + u + " is not a vector";
Expand Down

0 comments on commit d8eff29

Please sign in to comment.