Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
76ecc661
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,发现更多精彩内容 >>
提交
76ecc661
编写于
10月 14, 2014
作者:
G
Greg Tatum
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Completed half of curve documentation
上级
dbb4fc60
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
120 addition
and
129 deletion
+120
-129
docs/api/extras/curves/ArcCurve.html
docs/api/extras/curves/ArcCurve.html
+2
-30
docs/api/extras/curves/ClosedSplineCurve3.html
docs/api/extras/curves/ClosedSplineCurve3.html
+20
-17
docs/api/extras/curves/EllipseCurve.html
docs/api/extras/curves/EllipseCurve.html
+36
-15
docs/api/extras/curves/LineCurve.html
docs/api/extras/curves/LineCurve.html
+10
-17
docs/api/extras/curves/LineCurve3.html
docs/api/extras/curves/LineCurve3.html
+10
-18
docs/api/extras/curves/SplineCurve.html
docs/api/extras/curves/SplineCurve.html
+22
-15
docs/api/extras/curves/SplineCurve3.html
docs/api/extras/curves/SplineCurve3.html
+20
-17
未找到文件。
docs/api/extras/curves/ArcCurve.html
浏览文件 @
76ecc661
...
...
@@ -11,35 +11,7 @@
<h1>
[name]
</h1>
<div
class=
"desc"
>
todo
</div>
<h2>
Example
</h2>
<code>
todo
</code>
<h2>
Constructor
</h2>
<h3>
todo
</h3>
<div></div>
<h2>
Properties
</h2>
<h3>
todo
</h3>
<div>
todo
</div>
<h2>
Methods
</h2>
<h3>
todo
</h3>
<div>
todo
</div>
<div>
todo
</div>
<div
class=
"desc"
>
Alias for [page:EllipseCurve]
</div>
<h2>
Source
</h2>
...
...
docs/api/extras/curves/ClosedSplineCurve3.html
浏览文件 @
76ecc661
...
...
@@ -11,37 +11,40 @@
<h1>
[name]
</h1>
<div
class=
"desc"
>
todo
</div>
<div
class=
"desc"
>
Create a smooth 3d spline curve from a series of points that loops back onto itself
</div>
<h2>
Example
</h2>
<code>
todo
</code>
<code>
//Create a closed wavey loop
var curve = new THREE.ClosedSplineCurve3([
new THREE.Vector3(-10, 0, 10),
new THREE.Vector3(-5, 5, 5),
new THREE.Vector3( 0, 0, 0),
new THREE.Vector3( 5, -5, 5),
new THREE.Vector3(10, 0, 10)
]);
var geometry = new THREE.Geometry();
geometry.vertices = curve.getPoints(50);
var material = new THREE.LineBasicMaterial( { color: 0xff0000 } );
</code>
<h2>
Constructor
</h2>
<h3>
todo
</h3>
<div></div>
<h3>
[name]([page:Array points])
</h3>
<div>
points – An array of [page:Vector3] points
</div>
<h2>
Properties
</h2>
<h3>
todo
</h3>
<div>
todo
</div>
<h3>
.[page:Array points]
</h3>
<h2>
Methods
</h2>
<h3>
todo
</h3>
<div>
todo
</div>
<div>
todo
</div>
<h2>
Source
</h2>
<h3>
See [page:Curve] for inherited methods
</h3>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
...
...
docs/api/extras/curves/EllipseCurve.html
浏览文件 @
76ecc661
...
...
@@ -11,35 +11,56 @@
<h1>
[name]
</h1>
<div
class=
"desc"
>
todo
</div>
<div
class=
"desc"
>
Creates a 2d curve in the shape of an ellipse.
</div>
<h2>
Example
</h2>
<code>
todo
</code>
<code>
var curve = new THREE.EllipseCurve(
0, 0, // ax, aY
10, 10, // xRadius, yRadius
0, 2 * Math.PI, // aStartAngle, aEndAngle
false // aClockwise
);
<h2>
Constructor
</h2>
var path = new THREE.Path( curve.getPoints(50) );
var geometry = path.createPointsGeometry( 50 );
var material = new THREE.LineBasicMaterial( { color: 0xff0000 } );
//Create the final Object3d to add to the scene
var ellipse = new THREE.Line( geometry, material );
</code>
<h3>
todo
</h3>
<div></div>
<h2>
Constructor
</h2>
<h2>
Properties
</h2>
<h3>
todo
</h3>
<h3>
[name]([page:Float aX], [page:Float aY], [page:Float xRadius], [page:Float yRadius], [page:Radians aStartAngle], [page:Radians aEndAngle], [page:Boolean aClockwise])
</h3>
<div>
todo
aX – The X center of the ellipse
<br/>
aY – The Y center of the ellipse
<br/>
xRadius – The radius of the ellipse in the x direction
<br/>
yRadius – The radius of the ellipse in the y direction
<br/>
aStartAngle – The start angle of the curve in radians starting from the middle right side
<br/>
aEndAngle – The end angle of the curve in radians starting from the middle right side
<br/>
aClockwise – Whether the ellipse is clockwise
<br/><br/>
<strong>
Note:
</strong>
When going clockwise it's best to set the start angle to (Math.PI * 2) and then work towards lower numbers.
</div>
<h2>
Method
s
</h2>
<h2>
Propertie
s
</h2>
<h3>
.[page:Float aX]
</h3>
<h3>
.[page:Float aY]
</h3>
<h3>
.[page:Radians xRadius]
</h3>
<h3>
.[page:Radians yRadius]
</h3>
<h3>
.[page:Float aStartAngle]
</h3>
<h3>
.[page:Float aEndAngle]
</h3>
<h3>
.[page:Boolean aClockwise]
</h3>
<h3>
todo
</h3>
<div>
todo
</div>
<div>
todo
</div>
<h2>
Methods
</h2>
<h3>
See [page:Curve] for inherited methods
</h3>
<h2>
Source
</h2>
...
...
docs/api/extras/curves/LineCurve.html
浏览文件 @
76ecc661
...
...
@@ -11,35 +11,28 @@
<h1>
[name]
</h1>
<div
class=
"desc"
>
todo
</div>
<h2>
Example
</h2>
<code>
todo
</code>
<div
class=
"desc"
>
A curve representing a 2d line segment
</div>
<h2>
Constructor
</h2>
<h3>
todo
</h3>
<div></div>
<h3>
[name]([page:Vector2 v1], [page:Vector2 v2])
</h3>
<div>
v1 – The start point
<br/>
v2 - The end point
</div>
<h2>
Properties
</h2>
<h3>
todo
</h3>
<div>
todo
</div>
<h3>
.[page:Vector2 v1]
</h3>
<h3>
.[page:Vector2 v2]
</h3>
<h2>
Methods
</h2>
<h3>
See [page:Curve] for inherited methods
</h3>
<h3>
todo
</h3>
<div>
todo
</div>
<div>
todo
</div>
<h2>
Source
</h2>
...
...
docs/api/extras/curves/LineCurve3.html
浏览文件 @
76ecc661
...
...
@@ -11,35 +11,27 @@
<h1>
[name]
</h1>
<div
class=
"desc"
>
todo
</div>
<h2>
Example
</h2>
<code>
todo
</code>
<div
class=
"desc"
>
A curve representing a 3d line segment
</div>
<h2>
Constructor
</h2>
<h3>
todo
</h3>
<div></div>
<h3>
[name]([page:Vector3 v1], [page:Vector3 v2])
</h3>
<div>
v1 – The start point
<br/>
v2 - The end point
</div>
<h2>
Properties
</h2>
<h3>
todo
</h3>
<div>
todo
</div>
<h3>
.[page:Vector3 v1]
</h3>
<h3>
.[page:Vector3 v2]
</h3>
<h2>
Methods
</h2>
<h3>
todo
</h3>
<div>
todo
</div>
<div>
todo
</div>
<h3>
See [page:Curve] for inherited methods
</h3>
<h2>
Source
</h2>
...
...
docs/api/extras/curves/SplineCurve.html
浏览文件 @
76ecc661
...
...
@@ -11,35 +11,42 @@
<h1>
[name]
</h1>
<div
class=
"desc"
>
todo
</div>
<div
class=
"desc"
>
Create a smooth 2d spline curve from a series of points
</div>
<h2>
Example
</h2>
<code>
todo
</code>
<code>
//Create a sine-like wave
var curve = new THREE.SplineCurve([
new THREE.Vector2(-10, 0),
new THREE.Vector2(-5, 5),
new THREE.Vector2( 0, 0),
new THREE.Vector2( 5, -5),
new THREE.Vector2(10, 0)
]);
var path = new THREE.Path( curve.getPoints(50) );
var geometry = path.createPointsGeometry( 50 );
var material = new THREE.LineBasicMaterial( { color: 0xff0000 } );
var object3d = new THREE.Line( geometry, material );
</code>
<h2>
Constructor
</h2>
<h3>
todo
</h3>
<div></div>
<h3>
[name]([page:Array points])
</h3>
<div>
points – An array of [page:Vector2] points
</div>
<h2>
Properties
</h2>
<h3>
todo
</h3>
<div>
todo
</div>
<h3>
.[page:Array points]
</h3>
<h2>
Methods
</h2>
<h3>
todo
</h3>
<div>
todo
</div>
<div>
todo
</div>
<h3>
See [page:Curve] for inherited methods
</h3>
<h2>
Source
</h2>
...
...
docs/api/extras/curves/SplineCurve3.html
浏览文件 @
76ecc661
...
...
@@ -11,37 +11,40 @@
<h1>
[name]
</h1>
<div
class=
"desc"
>
todo
</div>
<div
class=
"desc"
>
Create a smooth 3d spline curve from a series of points
</div>
<h2>
Example
</h2>
<code>
todo
</code>
<code>
//Create a closed bent a sine-like wave
var curve = new THREE.SplineCurve3([
new THREE.Vector3(-10, 0, 10),
new THREE.Vector3(-5, 5, 5),
new THREE.Vector3( 0, 0, 0),
new THREE.Vector3( 5, -5, 5),
new THREE.Vector3(10, 0, 10)
]);
var geometry = new THREE.Geometry();
geometry.vertices = curve.getPoints(50);
var material = new THREE.LineBasicMaterial( { color: 0xff0000 } );
</code>
<h2>
Constructor
</h2>
<h3>
todo
</h3>
<div></div>
<h3>
[name]([page:Array points])
</h3>
<div>
points – An array of [page:Vector3] points
</div>
<h2>
Properties
</h2>
<h3>
todo
</h3>
<div>
todo
</div>
<h3>
.[page:Array points]
</h3>
<h2>
Methods
</h2>
<h3>
todo
</h3>
<div>
todo
</div>
<div>
todo
</div>
<h2>
Source
</h2>
<h3>
See [page:Curve] for inherited methods
</h3>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录