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.
|
12 years ago |
Ben Houston
|
ceb6671c2f
initial adoption of closures in the math library. all unit tests pass.
|
12 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
|
12 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.
|
12 years ago |
Ben Houston
|
587672690e
move credit for barycoord function from Raycaster to Triangle per @mrdoob.
|
12 years ago |
Ben Houston
|
a48922b97c
adopt @mrdoob's suggested Box2,Box3 constructor (update tests), make Triangle.normal also available as a static (easy consistent normal generation.)
|
12 years ago |
Ben Houston
|
3871af55c2
Rename Triangle3.js to Triangle.js per @mrdoob's suggestion here: https://github.com/mrdoob/three.js/issues/2750#issuecomment-11063983
|
12 years ago |