Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
8fa43c72
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,发现更多精彩内容 >>
提交
8fa43c72
编写于
8月 19, 2013
作者:
W
Walker Flynn
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
specified whether method returned this or new vector3
上级
eaf69613
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
28 addition
and
43 deletion
+28
-43
docs/api/math/Vector3.html
docs/api/math/Vector3.html
+28
-43
未找到文件。
docs/api/math/Vector3.html
浏览文件 @
8fa43c72
...
...
@@ -47,63 +47,63 @@
<h2>
Methods
</h2>
<h3>
.set( [page:Float x], [page:Float y], [page:Float z] ) [page:
Vector3
]
</h3>
<h3>
.set( [page:Float x], [page:Float y], [page:Float z] ) [page:
this
]
</h3>
<div>
Sets value of this vector.
</div>
<h3>
.setX( [page:Float x] ) [page:
Vector3
]
</h3>
<h3>
.setX( [page:Float x] ) [page:
this
]
</h3>
<div>
Sets x value of this vector.
</div>
<h3>
.setY( [page:Float y] ) [page:
Vector3
]
</h3>
<h3>
.setY( [page:Float y] ) [page:
this
]
</h3>
<div>
Sets y value of this vector.
</div>
<h3>
.setZ( [page:Float z] ) [page:
Vector3
]
</h3>
<h3>
.setZ( [page:Float z] ) [page:
this
]
</h3>
<div>
Sets z value of this vector.
</div>
<h3>
.copy( [page:Vector3 v] ) [page:
Vector3
]
</h3>
<h3>
.copy( [page:Vector3 v] ) [page:
this
]
</h3>
<div>
Copies value of *v* to this vector.
</div>
<h3>
.add( [page:Vector3 v] ) [page:
Vector3
]
</h3>
<h3>
.add( [page:Vector3 v] ) [page:
this
]
</h3>
<div>
Adds *v* to this vector.
</div>
<h3>
.addVectors( [page:Vector3 a], [page:Vector3 b] ) [page:
Vector3
]
</h3>
<h3>
.addVectors( [page:Vector3 a], [page:Vector3 b] ) [page:
this
]
</h3>
<div>
Sets this vector to *a + b*.
</div>
<h3>
.sub( [page:Vector3 v] ) [page:
Vector3
]
</h3>
<h3>
.sub( [page:Vector3 v] ) [page:
this
]
</h3>
<div>
Subtracts *v* from this vector.
</div>
<h3>
.subVectors( [page:Vector3 a], [page:Vector3 b] ) [page:
Vector3
]
</h3>
<h3>
.subVectors( [page:Vector3 a], [page:Vector3 b] ) [page:
this
]
</h3>
<div>
Sets this vector to *a - b*.
</div>
<h3>
.multiplyScalar( [page:Float s] ) [page:
Vector3
]
</h3>
<h3>
.multiplyScalar( [page:Float s] ) [page:
this
]
</h3>
<div>
Multiplies this vector by scalar *s*.
</div>
<h3>
.divideScalar( [page:Float s] ) [page:
Vector3
]
</h3>
<h3>
.divideScalar( [page:Float s] ) [page:
this
]
</h3>
<div>
Divides this vector by scalar *s*.
<br
/>
Set vector to *( 0, 0, 0 )* if *s == 0*.
</div>
<h3>
.negate() [page:
Vector3
]
</h3>
<h3>
.negate() [page:
this
]
</h3>
<div>
Inverts this vector.
</div>
...
...
@@ -129,7 +129,7 @@
[link:http://en.wikipedia.org/wiki/Taxicab_geometry]
</div>
<h3>
.normalize() [page:
Vector3
]
</h3>
<h3>
.normalize() [page:
this
]
</h3>
<div>
Normalizes this vector. Transforms this Vector into a Unit vector by dividing the vector by it's length.
</div>
...
...
@@ -144,27 +144,27 @@
Computes squared distance of this vector to *v*.
</div>
<h3>
.setLength( [page:Float l] ) [page:
Vector3
]
</h3>
<h3>
.setLength( [page:Float l] ) [page:
this
]
</h3>
<div>
Normalizes this vector and multiplies it by *l*.
</div>
<h3>
.cross( [page:Vector3 v] ) [page:
Vector3
]
</h3>
<h3>
.cross( [page:Vector3 v] ) [page:
this
]
</h3>
<div>
Sets this vector to cross product of itself and *v*.
</div>
<h3>
.crossVectors( [page:Vector3 a], [page:Vector3 b] ) [page:
Vector3
]
</h3>
<h3>
.crossVectors( [page:Vector3 a], [page:Vector3 b] ) [page:
this
]
</h3>
<div>
Sets this vector to cross product of *a* and *b*.
</div>
<h3>
.getPositionFromMatrix( [page:Matrix4 m] ) [page:
Vector3
]
</h3>
<h3>
.getPositionFromMatrix( [page:Matrix4 m] ) [page:
this
]
</h3>
<div>
Sets this vector extracting position from matrix transform.
</div>
<h3>
.getScaleFromMatrix( [page:Matrix4 m] ) [page:
Vector3
]
</h3>
<h3>
.getScaleFromMatrix( [page:Matrix4 m] ) [page:
this
]
</h3>
<div>
Sets this vector extracting scale from matrix transform.
</div>
...
...
@@ -229,12 +229,12 @@
Adds a s to this vector.
</div>
<h3>
.divide([page:todo v]) [page:todo]
</h3>
<h3>
.divide([page:todo v]) [page:todo
this
]
</h3>
<div>
v --
todo
v --
[page:todo Vector3]
</div>
<div>
todo
Divides this vector by vector v.
</div>
<h3>
.min([page:todo v]) [page:todo]
</h3>
...
...
@@ -242,7 +242,7 @@
v -- [page:todo Vector3]
</div>
<div>
Divides this vector by vector v
.
If this vector's x, y, or z value is less than vector v's x, y, or z value, that value is replaced by the corresponding vector v value
.
</div>
<h3>
.setComponent([page:todo index], [page:todo value]) [page:todo this]
</h3>
...
...
@@ -306,7 +306,7 @@
v -- [page:todo Vector3]
</div>
<div>
If this vector's x, y, or z value
exceeds
vector v's x, y, or z value, that value is replaced by the corresponding vector v value.
If this vector's x, y, or z value
is greater than
vector v's x, y, or z value, that value is replaced by the corresponding vector v value.
</div>
<h3>
.angleTo([page:todo v]) [page:todo Float]
</h3>
...
...
@@ -360,18 +360,12 @@
Multiplies this vector and m, and divides by perspective.
</div>
<h3>
.
setEulerFromRotationMatrix([page:todo m], [page:todo order]) [page:todo
]
</h3>
<h3>
.
toArray() [page:todo Array
]
</h3>
<div>
m -- todo
<br
/>
order -- todo
</div>
<div>
todo
</div>
<h3>
.toArray() [page:todo]
</h3>
<div>
todo
Assigns this vector's x value to array[0].
<br
/>
Assigns this vector's y value to array[1].
<br
/>
Assigns this vector's z value to array[2].
<br
/>
Returns the created array.
</div>
<h3>
.applyEuler([page:todo v], [page:todo eulerOrder]) [page:todo]
</h3>
...
...
@@ -391,15 +385,6 @@
todo
</div>
<h3>
.setEulerFromQuaternion([page:todo q], [page:todo order]) [page:todo]
</h3>
<div>
q -- todo
<br
/>
order -- todo
</div>
<div>
todo
</div>
<h2>
Source
</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录