Commit History

Author SHA1 Message Date
  Mr.doob c3636849cf Code clean up. 12 years ago
  jotinha d403e841ca moved ray triangle intersection to ray 12 years ago
  jotinha 64890729f7 better check for NaN 12 years ago
  jotinha bf41b8c000 fixed indentation 12 years ago
  jotinha a518807e49 Raycaster checks for bounding box intersection 12 years ago
  stephomi 62122822ec Normalize ray when transforming it + intersection RayTriangle. 12 years ago
  stephomi 000ae09e45 Use the optionalTarget for Ray.closestPointToPoint. 12 years ago
  stephomi bbe05b69f5 Rename distanceToSegment to distanceSqToSegment. 12 years ago
  Mr.doob d30c3703c8 Code clean up and now using inv* pattern. 12 years ago
  stephomi 1f7cc3d7f8 The ray is now used as a ray instead as a line. 12 years ago
  stephomi f58e144d9e Rename and fix the function that computes the ray-line intersection 12 years ago
  Mr.doob 6e96b2418a Code clean up. 12 years ago
  Stéphane f713c12885 A ray can now compute its minimal distance to a segment 12 years ago
  Mr.doob cc57273cf4 Reverting to Object.prototype = { pattern. Only using it on the methods that really need it. 13 years ago
  Ben Houston 1f4f7e1a79 (Box3|Line3|Plane|Ray|Sphere).transform() -> applyMatrix4() for consistency. 13 years ago
  Mr.doob f60212b5b0 Removed re-asigning of constructors. 13 years ago
  Ben Houston e2df06e005 fix three missed conversions to closures. switch to extending math prototypes rather than replacing them. This is to ensure that types created in closures within a type's prototype definition get their prototype updated with the full definition. 13 years ago
  Ben Houston ceb6671c2f initial adoption of closures in the math library. all unit tests pass. 13 years ago
  Mr.doob 39763ab7d0 Changed back some .projectPoint() to .applyMatrix4() as per bb873d16d676ead71dfce5181a73828b5993a05f. 13 years ago
  Mr.doob bb873d16d6 Added Vector3.projectPoint() as suggested in #2921. 13 years ago
  Ben Houston adaa3d042f update math constructors to not copy when provided explicit initial values per @mrdoob: https://github.com/mrdoob/three.js/pull/2902#issuecomment-11999928 13 years ago
  Mr.doob b062fee866 Removed Vector* add() to addVectors() and addSelf() to add(). Same with sub, cross, min, max, lerp... Renamed Matrix* and Quaternion multiply() to multiplyMatrices(), multiplyQuaternions() and multiplySelf() to multiply(). See #2860. 13 years ago
  Mr.doob 081a1fd646 Renamed .multiplyMatrix* to .applyMatrix* and .multiplyQuaternion to .applyQuaternion as suggested by @WestLangley in #2860. 13 years ago
  Mr.doob 127c0f2400 matrix.multiplyVector3 to vector.multiplyMatrix4 as suggested in #2860. 13 years ago
  Ben Houston 41788bd016 rename Ray.transformSelf -> Ray.transform (simplier name more consistent with rest of library.) 13 years ago
  Ben Houston f51168820e reduce GC load on Ray.recastSelf(), simplify Ray.at(). 13 years ago
  Ben Houston c5d38e8993 add Triangle3, add optionalTargets to Box2,Box3,Plane,Sphere,Ray where possible to reduce GC load, add Triangle3 unit tests. 13 years ago
  Ben Houston ccecf0745c adopt higher level Plane class in Raycaster instead of Vector3(vector,normal) pair. 13 years ago
  Ben Houston 348a3dd0b4 improvement to Ray for improved Raycaster integration. 13 years ago
  Ben Houston 3bffda430e add ray.transformSelf( matrix4 ) with unit test for verification. 13 years ago