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 лет назад |
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 лет назад |
Mr.doob
|
ef87a12c9a
Cleaned up Box3.
|
13 лет назад |
Mr.doob
|
081a1fd646
Renamed .multiplyMatrix* to .applyMatrix* and .multiplyQuaternion to .applyQuaternion as suggested by @WestLangley in #2860.
|
13 лет назад |
Mr.doob
|
127c0f2400
matrix.multiplyVector3 to vector.multiplyMatrix4 as suggested in #2860.
|
13 лет назад |
Ben Houston
|
8c2d2e9872
boundingSphere -> getBoundingSphere(), boundingBox -> getBoundingBox() per @mrdoob
|
13 лет назад |
Ben Houston
|
2b4373bee2
+Box3.boundingSphere(), Sphere.bounds()->Sphere.boundingBox(), unit tests.
|
13 лет назад |
Ben Houston
|
05af1b28ce
implemented Box3.transform, tested. Removed Box3/Box3.scale as it doesn't work in the general case. move tests to tests/math from tests/core to replace move of tested source files.
|
13 лет назад |
Ben Houston
|
a48922b97c
adopt @mrdoob's suggested Box2,Box3 constructor (update tests), make Triangle.normal also available as a static (easy consistent normal generation.)
|
13 лет назад |
Ben Houston
|
14ad378826
All unit tests pass now for Box2, Box3 and Triangle3. Fix bug in Plane.js caught in Triangle3 unit tests. Replace Raycaster.pointInFace3 with Triangle3.containsPoint, no loss of FPS in examples.
|
13 лет назад |
Ben Houston
|
c5d38e8993
add Triangle3, add optionalTargets to Box2,Box3,Plane,Sphere,Ray where possible to reduce GC load, add Triangle3 unit tests.
|
13 лет назад |
Ben Houston
|
f3671a9def
remove non-core and trivial geometric primitive fucntions to reduce code bulk.
|
13 лет назад |
Ben Houston
|
d821397c16
fixed #2728, Moved geometry primitives out of src/core into src/math. src/core is now exclusive scene primitives.
|
13 лет назад |