Browse Source

rename Ray.transformSelf -> Ray.transform (simplier name more consistent with rest of library.)

Ben Houston 12 years ago
parent
commit
41788bd016
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/core/Raycaster.js
  2. 1 1
      src/math/Ray.js

+ 1 - 1
src/core/Raycaster.js

@@ -89,7 +89,7 @@
 
 
 			inverseMatrix.getInverse( object.matrixWorld );
 			inverseMatrix.getInverse( object.matrixWorld );
 
 
-			localRay.copy( raycaster.ray ).transformSelf( inverseMatrix );
+			localRay.copy( raycaster.ray ).transform( inverseMatrix );
 	
 	
 			for ( var f = 0, fl = geometry.faces.length; f < fl; f ++ ) {
 			for ( var f = 0, fl = geometry.faces.length; f < fl; f ++ ) {
 
 

+ 1 - 1
src/math/Ray.js

@@ -131,7 +131,7 @@ THREE.Ray.prototype = {
 
 
 	},
 	},
 
 
-	transformSelf: function ( matrix4 ) {
+	transform: function ( matrix4 ) {
 
 
 		this.direction = matrix4.multiplyVector3( this.direction.addSelf( this.origin ) );
 		this.direction = matrix4.multiplyVector3( this.direction.addSelf( this.origin ) );
 		this.origin = matrix4.multiplyVector3( this.origin );
 		this.origin = matrix4.multiplyVector3( this.origin );