Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
9ccff289
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,发现更多精彩内容 >>
提交
9ccff289
编写于
12月 29, 2019
作者:
W
WestLangley
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Deprecate .applyToBufferAttribute() methods
上级
e1ea3219
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
13 addition
and
104 deletion
+13
-104
docs/api/en/deprecated/DeprecatedList.html
docs/api/en/deprecated/DeprecatedList.html
+7
-7
docs/api/en/math/Matrix3.html
docs/api/en/math/Matrix3.html
+0
-8
docs/api/en/math/Matrix4.html
docs/api/en/math/Matrix4.html
+0
-8
docs/api/zh/math/Matrix3.html
docs/api/zh/math/Matrix3.html
+0
-8
docs/api/zh/math/Matrix4.html
docs/api/zh/math/Matrix4.html
+0
-8
src/Three.Legacy.js
src/Three.Legacy.js
+6
-6
src/math/Matrix3.d.ts
src/math/Matrix3.d.ts
+0
-12
src/math/Matrix3.js
src/math/Matrix3.js
+0
-18
src/math/Matrix4.d.ts
src/math/Matrix4.d.ts
+0
-11
src/math/Matrix4.js
src/math/Matrix4.js
+0
-18
未找到文件。
docs/api/en/deprecated/DeprecatedList.html
浏览文件 @
9ccff289
...
...
@@ -253,7 +253,7 @@
<h3>
[page:JSONLoader]
</h3>
<p>
JSONLoader has been removed from core.
</p>
<h2>
Math
s
</h2>
<h2>
Math
</h2>
<h3>
[page:Box2]
</h3>
<p>
...
...
@@ -293,15 +293,15 @@
<h3>
[page:Matrix3]
</h3>
<p>
Matrix3.flattenToArrayOffset is deprecated. Use [page:Matrix3.toArray]() instead.
<br
/><br
/>
Matrix3.flattenToArrayOffset
()
is deprecated. Use [page:Matrix3.toArray]() instead.
<br
/><br
/>
Matrix3.multiplyVector3 has been removed. Use vector.applyMatrix3( matrix ) instead.
<br
/><br
/>
Matrix3.multiplyVector3
()
has been removed. Use vector.applyMatrix3( matrix ) instead.
<br
/><br
/>
Matrix3.multiplyVector3Array has been renamed to [page:Matrix3.applyToVector3Array]( array ).
<br
/><br
/>
Matrix3.multiplyVector3Array
()
has been renamed to [page:Matrix3.applyToVector3Array]( array ).
<br
/><br
/>
Matrix3.applyToBuffer
has been removed. Use matrix.applyToBufferAttribute( attribute
) instead.
<br
/><br
/>
Matrix3.applyToBuffer
Attribute() has been removed. Use [page:BufferAttribute.applyMatrix3]( matrix
) instead.
<br
/><br
/>
Matrix3.applyToVector3Array has been removed.
Matrix3.applyToVector3Array
()
has been removed.
<p>
<h3>
[page:Matrix4]
</h3>
...
...
@@ -332,7 +332,7 @@
Matrix4.rotateByAxis() has been removed.
<br
/><br
/>
Matrix4.applyToBuffer
() has been removed. Use matrix.applyToBufferAttribute(
) instead.
<br
/><br
/>
Matrix4.applyToBuffer
Attribute() has been removed. Use [page:BufferAttribute.applyMatrix4]( matrix
) instead.
<br
/><br
/>
Matrix4.applyToVector3Array() has been removed.
<br
/><br
/>
...
...
docs/api/en/math/Matrix3.html
浏览文件 @
9ccff289
...
...
@@ -65,14 +65,6 @@ m.elements = [ 11, 21, 31,
<h2>
Methods
</h2>
<h3>
[method:Array applyToBufferAttribute]( [param:BufferAttribute attribute] )
</h3>
<p>
[page:BufferAttribute attribute] - An attribute of floats that represent 3D vectors.
<br
/><br
/>
Multiplies (applies) this matrix to every 3D vector in the [page:BufferAttribute attribute].
</p>
<h3>
[method:Matrix3 clone]()
</h3>
<p>
Creates a new Matrix3 and with identical elements to this one.
</p>
...
...
docs/api/en/math/Matrix4.html
浏览文件 @
9ccff289
...
...
@@ -101,14 +101,6 @@ m.elements = [ 11, 21, 31, 41,
<h2>
Methods
</h2>
<h3>
[method:Array applyToBufferAttribute]( [param:BufferAttribute attribute] )
</h3>
<p>
[page:BufferAttribute attribute] - An attribute of floats that represent 3D vectors.
<br
/><br
/>
Multiplies (applies) this matrix to every 3D vector in the [page:BufferAttribute attribute].
</p>
<h3>
[method:Matrix4 clone]()
</h3>
<p>
Creates a new Matrix4 with identical [page:.elements elements] to this one.
</p>
...
...
docs/api/zh/math/Matrix3.html
浏览文件 @
9ccff289
...
...
@@ -62,14 +62,6 @@ m.elements = [ 11, 21, 31,
<h2>
方法(Methods)
</h2>
<h3>
[method:Array applyToBufferAttribute]( [param:BufferAttribute attribute] )
</h3>
<p>
[page:BufferAttribute attribute] - 表示三维向量缓存属性。
<br
/><br
/>
用这个矩阵乘以缓存属性[page:BufferAttribute attribute]里的所有3d向量。
</p>
<h3>
[method:Matrix3 clone]()
</h3>
<p>
创建一个新的矩阵,元素 [page:.elements elements] 与该矩阵相同。
</p>
...
...
docs/api/zh/math/Matrix4.html
浏览文件 @
9ccff289
...
...
@@ -93,14 +93,6 @@ m.elements = [ 11, 21, 31, 41,
<h2>
方法(Methods)
</h2>
<h3>
[method:Array applyToBufferAttribute]( [param:BufferAttribute attribute] )
</h3>
<p>
[page:BufferAttribute attribute] - 表示三维向量缓存属性。
<br
/><br
/>
用这个矩阵乘以缓存属性[page:BufferAttribute attribute]里的所有3d向量。
</p>
<h3>
[method:Matrix4 clone]()
</h3>
<p>
创建一个新的矩阵,元素[page:.elements elements]与该矩阵相同。
</p>
...
...
src/Three.Legacy.js
浏览文件 @
9ccff289
...
...
@@ -588,10 +588,10 @@ Object.assign( Matrix3.prototype, {
console
.
error
(
'
THREE.Matrix3: .multiplyVector3Array() has been removed.
'
);
},
applyToBuffer
:
function
(
buffer
/*, offset, length */
)
{
applyToBuffer
Attribute
:
function
(
attribute
)
{
console
.
warn
(
'
THREE.Matrix3: .applyToBuffer
() has been removed. Use matrix.applyToBufferAttribute( attribute
) instead.
'
);
return
this
.
applyToBufferAttribute
(
buffer
);
console
.
warn
(
'
THREE.Matrix3: .applyToBuffer
Attribute() has been removed. Use attribute.applyMatrix3( matrix
) instead.
'
);
return
attribute
.
applyMatrix3
(
this
);
},
applyToVector3Array
:
function
(
/* array, offset, length */
)
{
...
...
@@ -687,10 +687,10 @@ Object.assign( Matrix4.prototype, {
console
.
error
(
'
THREE.Matrix4: .rotateByAxis() has been removed.
'
);
},
applyToBuffer
:
function
(
buffer
/*, offset, length */
)
{
applyToBuffer
Attribute
:
function
(
attribute
)
{
console
.
warn
(
'
THREE.Matrix4: .applyToBuffer
() has been removed. Use matrix.applyToBufferAttribute( attribute
) instead.
'
);
return
this
.
applyToBufferAttribute
(
buffer
);
console
.
warn
(
'
THREE.Matrix4: .applyToBuffer
Attribute() has been removed. Use attribute.applyMatrix4( matrix
) instead.
'
);
return
attribute
.
applyMatrix4
(
this
);
},
applyToVector3Array
:
function
(
/* array, offset, length */
)
{
...
...
src/math/Matrix3.d.ts
浏览文件 @
9ccff289
...
...
@@ -74,18 +74,6 @@ export class Matrix3 implements Matrix {
clone
():
this
;
copy
(
m
:
Matrix3
):
this
;
setFromMatrix4
(
m
:
Matrix4
):
Matrix3
;
/**
* @deprecated Use {@link Matrix3#applyToBufferAttribute matrix3.applyToBufferAttribute( attribute )} instead.
*/
applyToBuffer
(
buffer
:
BufferAttribute
,
offset
?:
number
,
length
?:
number
):
BufferAttribute
;
applyToBufferAttribute
(
attribute
:
BufferAttribute
):
BufferAttribute
;
multiplyScalar
(
s
:
number
):
Matrix3
;
determinant
():
number
;
getInverse
(
matrix
:
Matrix3
,
throwOnDegenerate
?:
boolean
):
Matrix3
;
...
...
src/math/Matrix3.js
浏览文件 @
9ccff289
...
...
@@ -92,24 +92,6 @@ Object.assign( Matrix3.prototype, {
},
applyToBufferAttribute
:
function
(
attribute
)
{
for
(
var
i
=
0
,
l
=
attribute
.
count
;
i
<
l
;
i
++
)
{
_vector
.
x
=
attribute
.
getX
(
i
);
_vector
.
y
=
attribute
.
getY
(
i
);
_vector
.
z
=
attribute
.
getZ
(
i
);
_vector
.
applyMatrix3
(
this
);
attribute
.
setXYZ
(
i
,
_vector
.
x
,
_vector
.
y
,
_vector
.
z
);
}
return
attribute
;
},
multiply
:
function
(
m
)
{
return
this
.
multiplyMatrices
(
this
,
m
);
...
...
src/math/Matrix4.d.ts
浏览文件 @
9ccff289
...
...
@@ -98,17 +98,6 @@ export class Matrix4 implements Matrix {
*/
multiplyScalar
(
s
:
number
):
Matrix4
;
/**
* @deprecated Use {@link Matrix4#applyToBufferAttribute matrix4.applyToBufferAttribute( attribute )} instead.
*/
applyToBuffer
(
buffer
:
BufferAttribute
,
offset
?:
number
,
length
?:
number
):
BufferAttribute
;
applyToBufferAttribute
(
attribute
:
BufferAttribute
):
BufferAttribute
;
/**
* Computes determinant of this matrix.
* Based on http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm
...
...
src/math/Matrix4.js
浏览文件 @
9ccff289
...
...
@@ -415,24 +415,6 @@ Object.assign( Matrix4.prototype, {
},
applyToBufferAttribute
:
function
(
attribute
)
{
for
(
var
i
=
0
,
l
=
attribute
.
count
;
i
<
l
;
i
++
)
{
_v1
.
x
=
attribute
.
getX
(
i
);
_v1
.
y
=
attribute
.
getY
(
i
);
_v1
.
z
=
attribute
.
getZ
(
i
);
_v1
.
applyMatrix4
(
this
);
attribute
.
setXYZ
(
i
,
_v1
.
x
,
_v1
.
y
,
_v1
.
z
);
}
return
attribute
;
},
determinant
:
function
()
{
var
te
=
this
.
elements
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录