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 |
WestLangley
|
bb31515d6b
Vector3.get*FromMatrix() -> Vector3.setFromMatrix*()
|
11 years ago |
Mr.doob
|
18f27df17d
Removed another unneeded quaternion variable. As per @WestLangley suggestion in 0e9f32f1dd9ba8ff51060795d6b53101b3e7582f.
|
12 years ago |
Mr.doob
|
0e9f32f1dd
Checking if euler is instance of THREE.Euler. Fixes #3737.
|
12 years ago |
stephomi
|
bbaa398e19
Cache xyz components in crossVectors function.
|
12 years ago |
Mr.doob
|
d30c3703c8
Code clean up and now using inv* pattern.
|
12 years ago |
Mr.doob
|
6c49f3ce85
More Rotation/Euler breakage fixed.
|
12 years ago |
Ben Houston
|
1b05529254
added notices that Vector3.setEulerFromRotationMatrix/setEulerFromQuaternion have been removed. Not deprecating because the target class has changed, it isn't just a function rename.
|
12 years ago |
Ben Houston
|
a16a9f6775
complete Euler class, update examples, update Object3D, update unit tests.
|
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 |
WestLangley
|
fe2792df4a
Changed getColumnFromMatrix signature as suggested by @bhouston.
|
12 years ago |
WestLangley
|
b32a411446
added Vector3.getColumnX, etc.
|
12 years ago |
Mr.doob
|
e5b4c9be65
Minor clean up.
|
12 years ago |
Drew Noakes
|
52aeb2e270
Using THREE.Math.clamp instead of locally defined version.
|
12 years ago |
Drew Noakes
|
e4a451a8a0
Improved implementation and unit test for Vector3.angleTo to account for numerical problems outside of full [-1,1] range.
|
12 years ago |
Drew Noakes
|
55242bab09
Fixed bug in Vector3.angleTo where NaN was being returned instead of zero. Added corresponding unit test.
|
12 years ago |
Ben Houston
|
ba1a28489c
remove Vector3.projectOnUnit, add Vector3.projectOnPlane (equivalent to previously removed orthoTo).
|
12 years ago |
Ben Houston
|
e46d955358
Vector3.projectOn -> projectOnUnit, added projectOnVector.
|
12 years ago |
Ben Houston
|
5c3775465b
Vector3.projectOn/reflect: normal arg to unitNormal. Removed Vector3.orthoTo
|
12 years ago |
Ben Houston
|
ace4d4b31d
Vector3: project->projectOn, ortho->orthoTo per @WestLangley
|
12 years ago |
Ben Houston
|
d2ebe85c0b
rename cosTheta variable in Vector3.project per @WestLangley
|
12 years ago |
Ben Houston
|
f864ba1fd3
optimize Vector3.reflect, unit tests still pass.
|
12 years ago |
Ben Houston
|
f4e081c9e8
add Vector3.project, Vector3.ortho and Vector3.reflect based on request by #3009
|
12 years ago |
Mr.doob
|
9eaf84a50f
Added Vector*.toArray(). Implemented in SceneExporter2.
|
12 years ago |
Mr.doob
|
e314cb059d
Changed some of the matrix.getPosition() to vector.getPositionFromMatrix( matrix ). See #2967.
|
12 years ago |
WestLangley
|
e998138a39
Added Matrix3.getNormalMatrix( m ) and Vector3.transformDirection( m )
|
12 years ago |
Mr.doob
|
f60212b5b0
Removed re-asigning of constructors.
|
12 years ago |