Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
d2c0119a
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,发现更多精彩内容 >>
提交
d2c0119a
编写于
8月 20, 2013
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'vector3Docs' of
https://github.com/walfly/three.js
into dev
上级
4210a292
fae93f63
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
125 addition
and
1 deletion
+125
-1
docs/api/math/Euler.html
docs/api/math/Euler.html
+124
-0
docs/api/math/Vector2.html
docs/api/math/Vector2.html
+1
-1
未找到文件。
docs/api/math/Euler.html
0 → 100644
浏览文件 @
d2c0119a
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<script
src=
"../../list.js"
></script>
<script
src=
"../../page.js"
></script>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"../../page.css"
/>
</head>
<body>
<h1>
[name]
</h1>
<div
class=
"desc"
>
Euler Angles.
</div>
<h2>
Example
</h2>
<code>
var a = new THREE.Euler( 0, 1, 1.57, 'XYZ' );
var b = new THREE.Vector3( 1, 0, 1 );
b.applyEuler(a);
</code>
<h2>
Constructor
</h2>
<h3>
[name]( [page:Float x], [page:Float y], [page:Float z], [page:String Order] )
</h3>
<div>
x -- [page:Float] the angle of the x axis
<br
/>
y -- [page:Float] the angle of the y axis
<br
/>
z -- [page:Float] the angle of the z axis
<br
/>
order -- [page:String] A string representing the order that the rotations are applied, defaults to 'XYZ' (must be upper case).
</div>
<div>
A euler angle for transforming
</div>
<h2>
Properties
</h2>
<h3>
.[page:Float x]
</h3>
<h3>
.[page:Float y]
</h3>
<h3>
.[page:Float z]
</h3>
<h3>
.[page:String order]
</h3>
<h2>
Methods
</h2>
<h3>
.set( [page:Float x], [page:Float y], [page:Float z], [page:String order] ) [page:this]
</h3>
<div>
x -- [page:Float] Angle in x axis
<br
/>
x -- [page:Float] Angle in x axis
<br
/>
x -- [page:Float] Angle in x axis
<br
/>
order -- [page:string] Order of axes, defaults to 'XYZ' (must be upper case)
</div>
<div>
Sets the angles of this euler transform.
</div>
<h3>
.copy( [page:Euler euler] ) [page:this]
</h3>
<div>
Copies value of *euler* to this euler.
</div>
<h3>
.setFromRotationMatrix( [page:Matrix4 m], [page:String order] ) [page:this]
</h3>
<div>
m -- [page:Matrix4] assumes upper 3x3 of matrix is a pure rotation matrix (i.e. unscaled)
<br
/>
order -- [page:string] Order of axes, defaults to 'XYZ' (must be upper case)
</div>
<div>
Sets the angles of this euler transform from a pure rotation matrix based on the orientation specified by order.
</div>
<h3>
.setFromQuaternion( [page:Quaternion q], [page:String order] ) [page:this]
</h3>
<div>
q -- [page:Quaternion] quaternion must be normalized
<br
/>
order -- [page:string] Order of axes, defaults to 'XYZ' (must be upper case)
</div>
<div>
Sets the angles of this euler transform from a normalized quaternion based on the orientation specified by order.
</div>
<h3>
.reorder( [page:String newOrder] ) [page:this]
</h3>
<div>
Resets the euler angle with a new order by creating a quaternion from this euler angle and then setting this euler angle with the quaternion and the new order.
<br
/>
WARNING: this discards revolution information.
</div>
<h3>
.fromArray([page:Array array]) [page:this]
</h3>
<div>
array -- [page:Array] of length 3 or 4. array[3] is an optional order argument.
</div>
<div>
Assigns this euler's x angle to array[0].
<br
/>
Assigns this euler's y angle to array[1].
<br
/>
Assigns this euler's z angle to array[2].
<br
/>
Optionally assigns this euler's order to array[3].
</div>
<h3>
.toArray() [page:Array]
</h3>
<div>
Returns an array [x, y, z, order].
</div>
<h3>
.equals( [page:Euler euler] ) [page:Boolean]
</h3>
<div>
Checks for strict equality of this euler and *euler*.
</div>
<h3>
.clone() [page:Euler]
</h3>
<div>
Returns a new euler created from this euler.
</div>
<h2>
Source
</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
\ No newline at end of file
docs/api/math/Vector2.html
浏览文件 @
d2c0119a
...
...
@@ -123,7 +123,7 @@
Normalizes this vector and multiplies it by *l*.
</div>
<h3>
.equals( [page:Vector2 v] ) [page:
Vector2
]
</h3>
<h3>
.equals( [page:Vector2 v] ) [page:
Boolean
]
</h3>
<div>
Checks for strict equality of this vector and *v*.
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录