Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
66204777
T
three.js
项目概览
车家大少爷
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
66204777
编写于
10月 27, 2015
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mover Matrix* legacy code.
上级
80bfa452
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
87 addition
and
95 deletion
+87
-95
src/Three.Legacy.js
src/Three.Legacy.js
+87
-0
src/math/Matrix3.js
src/math/Matrix3.js
+0
-14
src/math/Matrix4.js
src/math/Matrix4.js
+0
-81
未找到文件。
src/Three.Legacy.js
浏览文件 @
66204777
...
...
@@ -28,6 +28,93 @@ Object.defineProperties( THREE.Box3.prototype, {
//
Object
.
defineProperties
(
THREE
.
Matrix3
.
prototype
,
{
multiplyVector3
:
{
value
:
function
(
vector
)
{
console
.
warn
(
'
THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead.
'
);
return
vector
.
applyMatrix3
(
this
);
}
},
multiplyVector3Array
:
{
value
:
function
(
a
)
{
console
.
warn
(
'
THREE.Matrix3: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead.
'
);
return
this
.
applyToVector3Array
(
a
);
}
}
}
);
Object
.
defineProperties
(
THREE
.
Matrix4
.
prototype
,
{
extractPosition
:
{
value
:
function
(
m
)
{
console
.
warn
(
'
THREE.Matrix4: .extractPosition() has been renamed to .copyPosition().
'
);
return
this
.
copyPosition
(
m
);
}
},
setRotationFromQuaternion
:
{
value
:
function
(
q
)
{
console
.
warn
(
'
THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion().
'
);
return
this
.
makeRotationFromQuaternion
(
q
);
}
},
multiplyVector3
:
{
value
:
function
(
vector
)
{
console
.
warn
(
'
THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) or vector.applyProjection( matrix ) instead.
'
);
return
vector
.
applyProjection
(
this
);
}
},
multiplyVector4
:
{
value
:
function
(
vector
)
{
console
.
warn
(
'
THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead.
'
);
return
vector
.
applyMatrix4
(
this
);
}
},
multiplyVector3Array
:
{
value
:
function
(
a
)
{
console
.
warn
(
'
THREE.Matrix4: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead.
'
);
return
this
.
applyToVector3Array
(
a
);
}
},
rotateAxis
:
{
value
:
function
(
v
)
{
console
.
warn
(
'
THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.
'
);
v
.
transformDirection
(
this
);
}
},
crossVector
:
{
value
:
function
(
vector
)
{
console
.
warn
(
'
THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead.
'
);
return
vector
.
applyMatrix4
(
this
);
}
},
translate
:
{
value
:
function
(
v
)
{
console
.
error
(
'
THREE.Matrix4: .translate() has been removed.
'
);
}
},
rotateX
:
{
value
:
function
(
angle
)
{
console
.
error
(
'
THREE.Matrix4: .rotateX() has been removed.
'
);
}
},
rotateY
:
{
value
:
function
(
angle
)
{
console
.
error
(
'
THREE.Matrix4: .rotateY() has been removed.
'
);
}
},
rotateZ
:
{
value
:
function
(
angle
)
{
console
.
error
(
'
THREE.Matrix4: .rotateZ() has been removed.
'
);
}
},
rotateByAxis
:
{
value
:
function
(
axis
,
angle
)
{
console
.
error
(
'
THREE.Matrix4: .rotateByAxis() has been removed.
'
);
}
}
}
);
//
Object
.
defineProperties
(
THREE
.
Vector3
.
prototype
,
{
setEulerFromRotationMatrix
:
{
value
:
function
()
{
...
...
src/math/Matrix3.js
浏览文件 @
66204777
...
...
@@ -74,20 +74,6 @@ THREE.Matrix3.prototype = {
},
multiplyVector3
:
function
(
vector
)
{
console
.
warn
(
'
THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead.
'
);
return
vector
.
applyMatrix3
(
this
);
},
multiplyVector3Array
:
function
(
a
)
{
console
.
warn
(
'
THREE.Matrix3: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead.
'
);
return
this
.
applyToVector3Array
(
a
);
},
applyToVector3Array
:
function
()
{
var
v1
;
...
...
src/math/Matrix4.js
浏览文件 @
66204777
...
...
@@ -76,13 +76,6 @@ THREE.Matrix4.prototype = {
},
extractPosition
:
function
(
m
)
{
console
.
warn
(
'
THREE.Matrix4: .extractPosition() has been renamed to .copyPosition().
'
);
return
this
.
copyPosition
(
m
);
},
copyPosition
:
function
(
m
)
{
var
te
=
this
.
elements
;
...
...
@@ -282,14 +275,6 @@ THREE.Matrix4.prototype = {
},
setRotationFromQuaternion
:
function
(
q
)
{
console
.
warn
(
'
THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion().
'
);
return
this
.
makeRotationFromQuaternion
(
q
);
},
makeRotationFromQuaternion
:
function
(
q
)
{
var
te
=
this
.
elements
;
...
...
@@ -450,27 +435,6 @@ THREE.Matrix4.prototype = {
},
multiplyVector3
:
function
(
vector
)
{
console
.
warn
(
'
THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) or vector.applyProjection( matrix ) instead.
'
);
return
vector
.
applyProjection
(
this
);
},
multiplyVector4
:
function
(
vector
)
{
console
.
warn
(
'
THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead.
'
);
return
vector
.
applyMatrix4
(
this
);
},
multiplyVector3Array
:
function
(
a
)
{
console
.
warn
(
'
THREE.Matrix4: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead.
'
);
return
this
.
applyToVector3Array
(
a
);
},
applyToVector3Array
:
function
()
{
var
v1
;
...
...
@@ -523,21 +487,6 @@ THREE.Matrix4.prototype = {
}(),
rotateAxis
:
function
(
v
)
{
console
.
warn
(
'
THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.
'
);
v
.
transformDirection
(
this
);
},
crossVector
:
function
(
vector
)
{
console
.
warn
(
'
THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead.
'
);
return
vector
.
applyMatrix4
(
this
);
},
determinant
:
function
()
{
var
te
=
this
.
elements
;
...
...
@@ -717,36 +666,6 @@ THREE.Matrix4.prototype = {
},
translate
:
function
(
v
)
{
console
.
error
(
'
THREE.Matrix4: .translate() has been removed.
'
);
},
rotateX
:
function
(
angle
)
{
console
.
error
(
'
THREE.Matrix4: .rotateX() has been removed.
'
);
},
rotateY
:
function
(
angle
)
{
console
.
error
(
'
THREE.Matrix4: .rotateY() has been removed.
'
);
},
rotateZ
:
function
(
angle
)
{
console
.
error
(
'
THREE.Matrix4: .rotateZ() has been removed.
'
);
},
rotateByAxis
:
function
(
axis
,
angle
)
{
console
.
error
(
'
THREE.Matrix4: .rotateByAxis() has been removed.
'
);
},
scale
:
function
(
v
)
{
var
te
=
this
.
elements
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录