Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
b27fa8e6
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,发现更多精彩内容 >>
提交
b27fa8e6
编写于
3月 05, 2012
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Docs: Projector.
上级
51db1370
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
43 addition
and
32 deletion
+43
-32
docs/api/core/Color.html
docs/api/core/Color.html
+1
-1
docs/api/core/Matrix4.html
docs/api/core/Matrix4.html
+5
-0
docs/api/core/Projector.html
docs/api/core/Projector.html
+10
-7
docs/api/core/Quaternion.html
docs/api/core/Quaternion.html
+16
-5
src/core/Matrix4.js
src/core/Matrix4.js
+11
-13
src/core/Projector.js
src/core/Projector.js
+0
-6
未找到文件。
docs/api/core/Color.html
浏览文件 @
b27fa8e6
...
...
@@ -112,7 +112,7 @@ Example: rgb(r, g, b)
<h3>
.clone() [page:Color]
</h3>
<div>
Clones this
object
.
Clones this
color
.
</div>
<h2>
Source
</h2>
...
...
docs/api/core/Matrix4.html
浏览文件 @
b27fa8e6
...
...
@@ -297,6 +297,11 @@ Rotates this matrix around z axis by *angle*.
Translates this matrix by vector *v*.
</div>
<h3>
.clone() [page:Matrix4]
</h3>
<div>
Clones this matrix.
</div>
<h2>
Static Methods
</h2>
...
...
docs/api/core/Projector.html
浏览文件 @
b27fa8e6
<h1>
[name]
</h1>
<div
class=
"desc"
>
Project
ing
points between spaces.
</div>
<div
class=
"desc"
>
Project
s
points between spaces.
</div>
<h2>
Constructor
</h2>
...
...
@@ -8,18 +8,21 @@
<h3>
[name]()
</h3>
<h2>
Properties
</h2>
<h3>
.[page:Vector3 todo]
</h3>
<h2>
Methods
</h2>
<h3>
.projectVector( [page:Vector3 vector], [page:Camera camera] ) [page:Vector3]
</h3>
<h
2>
Methods
</h2
>
<h
3>
.unprojectVector( [page:Vector3 vector], [page:Camera camera] ) [page:Vector3]
</h3
>
<h3>
.p
rojectVector( [page:Vector3 todo] )
</h3>
<h3>
.p
ickingRay( [page:Vector3 vector], [page:Camera camera] ) [page:Ray]
</h3>
<div>
todo — todo
<br
/>
Translates a 2D point from NDC to a [page:Ray] that can be used for picking.
</div>
<h3>
.projectGraph( [page:Object3D root], [page:Boolean sort] ) [page:Object]
</h3>
<h3>
.projectScene( [page:Scene scene], [page:Camera camera], [page:Boolean sort] ) [page:Object]
</h3>
<h2>
Source
</h2>
...
...
docs/api/core/Quaternion.html
浏览文件 @
b27fa8e6
<h1>
[name]
</h1>
<div
class=
"desc"
>
todo
</div>
<div
class=
"desc"
>
Implementation of a quaternion
</div>
<h2>
Constructor
</h2>
<h3>
[name]()
</h3>
<h3>
[name](
[page:Number x], [page:Number y], [page:Number z], [page:Number w]
)
</h3>
<h2>
Properties
</h2>
<h3>
.[page:Vector3 todo]
</h3>
<h3>
.[page:Number x]
</h3>
<h3>
.[page:Number y]
</h3>
<h3>
.[page:Number z]
</h3>
<h3>
.[page:Number w]
</h3>
<h2>
Methods
</h2>
<h3>
.todo( [page:Vector3 todo] )
</h3>
<h3>
.copy( q ) [page:Quaternion]
</h3>
<div>
Copies value of *q* to this quaternion.
</div>
<h3>
.clone() [page:Quaternion]
</h3>
<div>
todo — todo
<br
/>
Clones this quaternion.
</div>
...
...
src/core/Matrix4.js
浏览文件 @
b27fa8e6
...
...
@@ -280,19 +280,6 @@ THREE.Matrix4.prototype = {
},
clone
:
function
()
{
var
m
=
new
THREE
.
Matrix4
();
m
.
n11
=
this
.
n11
;
m
.
n12
=
this
.
n12
;
m
.
n13
=
this
.
n13
;
m
.
n14
=
this
.
n14
;
m
.
n21
=
this
.
n21
;
m
.
n22
=
this
.
n22
;
m
.
n23
=
this
.
n23
;
m
.
n24
=
this
.
n24
;
m
.
n31
=
this
.
n31
;
m
.
n32
=
this
.
n32
;
m
.
n33
=
this
.
n33
;
m
.
n34
=
this
.
n34
;
m
.
n41
=
this
.
n41
;
m
.
n42
=
this
.
n42
;
m
.
n43
=
this
.
n43
;
m
.
n44
=
this
.
n44
;
return
m
;
},
flattenToArray
:
function
(
flat
)
{
flat
[
0
]
=
this
.
n11
;
flat
[
1
]
=
this
.
n21
;
flat
[
2
]
=
this
.
n31
;
flat
[
3
]
=
this
.
n41
;
...
...
@@ -934,6 +921,17 @@ THREE.Matrix4.prototype = {
return
this
;
},
clone
:
function
()
{
return
new
THREE
.
Matrix4
(
this
.
n11
,
this
.
n12
,
this
.
n13
,
this
.
n14
,
this
.
n21
,
this
.
n22
,
this
.
n23
,
this
.
n24
,
this
.
n31
,
this
.
n32
,
this
.
n33
,
this
.
n34
,
this
.
n41
,
this
.
n42
,
this
.
n43
,
this
.
n44
);
}
};
...
...
src/core/Projector.js
浏览文件 @
b27fa8e6
...
...
@@ -49,12 +49,6 @@ THREE.Projector = function() {
};
/**
* Translates a 2D point from NDC to a THREE.Ray
* that can be used for picking.
* @vector - THREE.Vector3 that represents 2D point
* @camera - THREE.Camera
*/
this
.
pickingRay
=
function
(
vector
,
camera
)
{
var
end
,
ray
,
t
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录