arose
|
9c30286b38
Vector*, Quaternion toArray: cleaner code
|
11 years ago |
Alexander Rose
|
ebba6ea4a5
Vector2 toArray(): return array
|
11 years ago |
Alexander Rose
|
1a0153b9b5
Vector2: Added array and offset to toArray()
|
11 years ago |
Mr.doob
|
7fa9abeda2
Quaternion, Vector*: Added offset to fromArray()
|
11 years ago |
Mr.doob
|
2c4f25af3d
Vector*: Simpler negate code.
|
11 years ago |
Joshua Koo
|
aafd29c50a
Code transforming mrdoob style second attempt See #4806
|
11 years ago |
Mr.doob
|
40633c8573
Cleaned up warnings and error messages.
|
11 years ago |
Mr.doob
|
5549e242e0
Object3D: Using Object.defineProperties to avoid object.rotation = new THREE.Euler() pattern. See fffeeb636ee9fa38f2e3a51358c361116d827d8b.
|
11 years ago |
gero3
|
9ef56d921f
Update vector2 to add divide and multiply.
|
11 years ago |
Mr.doob
|
174ed38ff5
Code clean up.
|
11 years ago |
Tom Whittock
|
8375a6f421
Use clamp for clampScalar implementation
|
11 years ago |
Tom Whittock
|
3a58a5804c
Add Vector methods clampScalar, floor, ceil, round, roundToZero
|
11 years ago |
Mr.doob
|
d30c3703c8
Code clean up and now using inv* pattern.
|
12 years ago |
Mr.doob
|
af203fe9dd
Returning this in fromArray methods.
|
12 years ago |
Mr.doob
|
e68aeeacaf
Added fromArray() to Vector* for convenience.
|
12 years ago |
Mr.doob
|
cc57273cf4
Reverting to Object.prototype = { pattern. Only using it on the methods that really need it.
|
12 years ago |
Mr.doob
|
9eaf84a50f
Added Vector*.toArray(). Implemented in SceneExporter2.
|
12 years ago |
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 |
Mr.doob
|
24036c9b25
Added deprecated messages to avoid silent errors when using renamed methods. See #2883.
|
12 years ago |
Mr.doob
|
a851b6b645
Removed debugger bits.
|
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
|
081a1fd646
Renamed .multiplyMatrix* to .applyMatrix* and .multiplyQuaternion to .applyQuaternion as suggested by @WestLangley in #2860.
|
12 years ago |
Mr.doob
|
189148edf7
Some space/tabs clean up.
|
12 years ago |
Ben Houston
|
dafc56fd84
use switch statements in Vector2/3/4.getComponents()/setComponents() based on it being 5-10x faster than index-to-name based on benchmark_vector3components.html
|
12 years ago |
Ben Houston
|
a963e2dc38
remove lazy-conditions.
|
12 years ago |
Ben Houston
|
a1ac92dbb2
Merge branch 'vector-index-accessors' into dev
|
12 years ago |
Ben Houston
|
2613df2088
inline Vector2/3/4/Quaternion.length()/lengthSq() and optimize Vector2/3/4.setLength() with unit test coverage.
|
12 years ago |
Ben Houston
|
d23fc1b8cb
Three.js style formatting.
|
12 years ago |
Ben Houston
|
8c519c85a6
Vector2/3/4 setComponent, getComponent accessors (more efficient this time.)
|
12 years ago |