Browse Source

move credit for barycoord function from Raycaster to Triangle per @mrdoob.

Ben Houston 12 years ago
parent
commit
587672690e
2 changed files with 1 additions and 2 deletions
  1. 0 2
      src/core/Raycaster.js
  2. 1 0
      src/math/Triangle.js

+ 0 - 2
src/core/Raycaster.js

@@ -34,8 +34,6 @@
 
 	};
 
-	// http://www.blackpawn.com/texts/pointinpoly/default.html
-
 	var intersectObject = function ( object, raycaster, intersects ) {
 
 		if ( object instanceof THREE.Particle ) {

+ 1 - 0
src/math/Triangle.js

@@ -39,6 +39,7 @@ THREE.Triangle.normal = function( a, b, c, optionalTarget ) {
 };
 
 // static/instance method to calculate barycoordinates
+// based on: http://www.blackpawn.com/texts/pointinpoly/default.html
 THREE.Triangle.barycoordFromPoint = function ( point, a, b, c, optionalTarget ) {
 
 	THREE.Triangle.__v0.sub( c, a );