Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
c9eebb58
T
three.js
项目概览
Ablesons
/
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,发现更多精彩内容 >>
提交
c9eebb58
编写于
1月 25, 2013
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'documentation' of
git://github.com/gero3/three.js
into dev
上级
dcb13368
b4f8a71b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
89 addition
and
7 deletion
+89
-7
docs/api/core/Projector.html
docs/api/core/Projector.html
+15
-1
docs/api/core/Raycaster.html
docs/api/core/Raycaster.html
+58
-5
docs/api/lights/AmbientLight.html
docs/api/lights/AmbientLight.html
+7
-0
docs/api/lights/Light.html
docs/api/lights/Light.html
+9
-1
未找到文件。
docs/api/core/Projector.html
浏览文件 @
c9eebb58
...
...
@@ -20,9 +20,23 @@
<h2>
Methods
</h2>
<h3>
.projectVector( [page:Vector3 vector], [page:Camera camera] ) [page:Vector3]
</h3>
<div>
[page:Vector3 vector] — vector to project.
<br
/>
[page:Camera camera] — camera to use in the projection.
<br
/>
</div>
<div>
Projects a vector with the camera. Caution, this method changes 'vector'.
</div>
<h3>
.unprojectVector( [page:Vector3 vector], [page:Camera camera] ) [page:Vector3]
</h3>
<div>
[page:Vector3 vector] — vector to unproject.
<br
/>
[page:Camera camera] — camera to use in the projection.
<br
/>
</div>
<div>
Unprojects a vector with the camera. Caution, this method changes 'vector'.
</div>
<h3>
.pickingRay( [page:Vector3 vector], [page:Camera camera] ) [page:Raycaster]
</h3>
<div>
Translates a 2D point from NDC (
<em>
Normalized Device Coordinates
</em>
) to a [page:Raycaster] that can be used for picking. NDC range from [-1..1] in x (left to right) and [1.0 .. -1.0] in y (top to bottom).
...
...
docs/api/core/Raycaster.html
浏览文件 @
c9eebb58
...
...
@@ -9,24 +9,77 @@
<body>
<h1>
[name]
</h1>
<div
class=
"desc"
>
todo
</div>
<div
class=
"desc"
>
This class makes raycasting easier. Raycasting is used for picking and more.
</div>
<h2>
Constructor
</h2>
<h3>
[name]()
</h3>
<h3>
[name]( [page:Vector3 origin], [page:Vector3 direction], [page:Float near], [page:Float far] ) {
</h3>
<div>
[page:Vector3 origin] — The origin vector where the ray casts from.
<br
/>
[page:Vector3 direction] — The direction vector that gives direction to the ray.
<br
/>
[page:Float near] — All results returned are further away then near. Near can't be negative. Default value is 0.
<br
/>
[page:Float far] — All results returned are closer then far. Far can't be lower then near . Default value is Infinity.
</div>
<div>
This creates a new raycaster object.
<br
/>
</div>
<h2>
Properties
</h2>
<h3>
.[page:Vector3 todo]
</h3>
<h3>
.[page:Ray ray]
</h3>
<div>
The Ray used for the raycasting.
</div>
<h3>
.[page:float near]
</h3>
<div>
The near factor of the raycaster. This value indicates which objects can be discarded based on the distance.
<br
/>
This value shouldn't be negative and should be smaller then the far property.
</div>
<h3>
.[page:float far]
</h3>
<div>
The far factor of the raycaster. This value indicates which objects can be discarded based on the distance.
<br
/>
This value shouldn't be negative and should be smaller then the far property.
</div>
<h3>
.[page:float precision]
</h3>
<div>
The precision factor of the raycaster.
</div>
<h2>
Methods
</h2>
<h3>
.todo( [page:Vector3 todo] )
</h3>
<h3>
.set( [page:Vector3 origin], [page:Vector3 direction] )
</h3>
<div>
[page:Vector3 origin] — The origin vector where the ray casts from.
<br
/>
[page:Vector3 direction] — The direction vector that gives direction to the ray.
</div>
<div>
Updates the ray with a new origin and direction.
</div>
<h3>
.intersectObject( [page:Object3D object], [page:Boolean recursive] )
</h3>
<div>
[page:Object3D object] — The object to check for intersection with the ray.
<br
/>
[page:Boolean recursive] — If set, it also checks all descendants. Otherwise it only checks intersecton with the object.
</div>
<div>
checks all intersection between the ray and the object with or without the descendants.
</div>
<h3>
.intersectObjects( [page:Array objects], [page:Boolean recursive] )
</h3>
<div>
[page:Array objects] — The objects to check for intersection with the ray.
<br
/>
[page:Boolean recursive] — If set, it also checks all descendants of the objects. Otherwise it only checks intersecton with the objects.
</div>
<div>
todo — todo
<br
/>
checks all intersection between the ray and the objects with or without the descendants.
</div>
...
...
docs/api/lights/AmbientLight.html
浏览文件 @
c9eebb58
...
...
@@ -24,6 +24,13 @@ scene.add( light );</code>
<h2>
Constructor
</h2>
<h3>
[name]( [page:Float hex] )
</h3>
<div>
[page:Integer hex] — Numeric value of the RGB component of the color.
</div>
<div>
This creates a Ambientlight with a color.
</div>
<h2>
Source
</h2>
...
...
docs/api/lights/Light.html
浏览文件 @
c9eebb58
...
...
@@ -17,12 +17,20 @@
<h2>
Constructor
</h2>
<h3>
[name]( [page:Integer hex] )
</h3>
<div>
[page:Integer hex] — Numeric value of the RGB component of the color.
</div>
<div>
This creates a light with color.
<br
/>
</div>
<h2>
Properties
</h2>
<h3>
.[page:Color color]
</h3>
<div>
Color of the light.
<br
/>
</div>
<h2>
Source
</h2>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录