Mr.doob
|
f60212b5b0
Removed re-asigning of constructors.
|
12 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.
|
12 years ago |
Ben Houston
|
ceb6671c2f
initial adoption of closures in the math library. all unit tests pass.
|
12 years ago |
Mr.doob
|
c8e453788d
Faster Box2 and Box3 containsPoint.
|
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 |
Mr.doob
|
171b5e6881
Aesthetic tweaks to Box2.
|
12 years ago |
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.
|
12 years ago |
Mr.doob
|
d0adb01f5e
Merge remote-tracking branch 'bhouston/triangle' into dev
|
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 |
Mr.doob
|
7777df425c
Removed Rectangle.
|
12 years ago |
Mr.doob
|
8ac873b581
Merge remote-tracking branch 'bhouston/triangle' into dev
|
12 years ago |
Mr.doob
|
f5c0132448
Reverted Box2.addPoint. CanvasRenderer now using Box2.setFromPoints.
|
12 years ago |
Mr.doob
|
24ec04f98e
Replaced Rectangle with Box2 in CanvasRenderer. Also added Box2.addPoint()
|
12 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.
|
12 years ago |
Ben Houston
|
f3671a9def
remove non-core and trivial geometric primitive fucntions to reduce code bulk.
|
12 years ago |
Ben Houston
|
d821397c16
fixed #2728, Moved geometry primitives out of src/core into src/math. src/core is now exclusive scene primitives.
|
12 years ago |