Skip to content
6 changes: 0 additions & 6 deletions docs/api/en/extras/curves/EllipseCurve.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ <h3>[property:Boolean aClockwise]</h3>
<h3>[property:Float aRotation]</h3>
<p>The rotation angle of the ellipse in radians, counterclockwise from the positive X axis (optional). Default is *0*.</p>

<h3>[property:Boolean isEllipseCurve]</h3>
<p>
Used to check whether this or derived classes are ellipses. Default is *true*.<br /><br />

You should not change this, as it used internally for optimisation.
</p>

<h2>Methods</h2>
<p>See the base [page:Curve] class for common methods.</p>
Expand Down
30 changes: 15 additions & 15 deletions docs/api/zh/extras/core/CurvePath.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,50 +10,50 @@
<body>
[page:Curve] &rarr;

<h1>[name]</h1>
<h1>曲线路径([name]</h1>

<p class="desc">
An abstract base class extending [page:Curve]. A CurvePath is simply an array of connected curves,
but retains the api of a curve.

一个扩展了[page:Curve]的抽象基类。CurvePath仅仅是一个已连接的曲线的数组,但保留了曲线的API。
</p>


<h2>Constructor</h2>
<h2>构造函数</h2>


<h3>[name]()</h3>
<p>
The constructor take no parameters.
构造函数中不传入参数。
</p>


<h2>Properties</h2>
<p>See the base [page:Curve] class for common properties.</p>
<h2>属性</h2>
<p>请参阅其基类[page:Curve]来了解供共有属性。</p>

<h3>[property:array curves]</h3>
<p>The array of [page:Curve Curves].</p>
<p>[page:Curve Curves]数组。</p>

<h3>[property:boolean autoClose]</h3>
<p>Whether or not to automatically close the path.</p>
<p>是否自动闭合路径。</p>





<h2>Methods</h2>
<p>See the base [page:Curve] class for common methods.</p>
<h2>方法</h2>
<p>请参阅其基类[page:Curve]来了解共有方法。</p>

<h3>[method:null add]( [param:Curve curve] )</h3>
<p>Add a curve to the [page:.curves] array.</p>
<p>添加一条曲线到[page:.curves]数组中。</p>

<h3>[method:null closePath]()</h3>
<p>Adds a [page:LineCurve lineCurve] to close the path.</p>
<p>添加一条[page:LineCurve lineCurve]用于闭合路径。</p>

<h3>[method:Float getCurveLengths]()</h3>
<p>Adds together the lengths of the curves in the [page:.curves] array.</p>
<p>[page:.curves]数组中曲线的长度相加。</p>


<h2>Source</h2>
<h2>源代码</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
Expand Down
34 changes: 18 additions & 16 deletions docs/api/zh/extras/core/Font.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,53 +8,55 @@
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>[name]</h1>
<h1>字体([name]</h1>

<p class="desc">
Create a set of [page:Shape Shapes] representing a font loaded in JSON format.<br /><br />
以JSON格式,创建一系列的[page:Shape Shape](形状)来表示一个字体。
<br /><br />

This is used internally by the [page:FontLoader].
该类在内部由[page:FontLoader]所使用。
</p>

<h2>Examples</h2>
<h2>示例</h2>

<p>
[example:webgl_geometry_text_shapes geometry / text / shapes ]<br/>
[example:webgl_shaders_vector vector / text ]<br/>
</p>

<h2>Constructor</h2>
<h2>构造函数</h2>

<h3>[name]( data )</h3>
<p>
data -- JSON data representing the font.<br /><br />
data -- 表示字体的JSON数据。<br /><br />

This constructor creates a new [name], which is an array of [page:Shape Shapes].
这一构造函数创建一个新的[name],它是一个[page:Shape Shapes]数组。
</p>

<h2>Properties</h2>
<h2>属性</h2>

<h3>[property:array data]</h3>
<p>The JSON data passed in the constructor.</p>
<p>传入到构造函数的JSON数据。</p>

<h3>[property:Boolean isFont]</h3>
<p>
Used to check whether this or derived classes are fonts. Default is *true*.<br /><br />
用于检查该类或者其派生类是否为字体。默认值为*true*。
<br /><br />

You should not change this, as it used internally by the renderer for optimisation.
你不应当对这一属性进行改变,它在内部由渲染器所使用,以用于优化。
</p>

<h2>Methods</h2>
<h2>方法</h2>

<h3>[method:null generateShapes]( [param:String text], [param:Float size] )</h3>
<p>
[page:String text] -- string of text.<br />
[page:Float size] -- (optional) scale for the [page:Shape Shapes]. Default is *100*.<br />
[page:String text] -- 文本字符串。<br />
[page:Float size] -- (可选)[page:Shape Shapes]的缩放,默认值为*100*<br />

Creates an array of [page:Shape Shapes] representing the text in the font.
创建一个[page:Shape Shapes]数组,表示使用字体的文本。
</p>

<h2>Source</h2>
<h2>源代码</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
Expand Down
24 changes: 12 additions & 12 deletions docs/api/zh/extras/core/Interpolations.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,39 @@
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>[name]</h1>
<h1>插值([name]</h1>

<p class="desc">
TODO
</p>

<h2>Methods</h2>
<h2>方法</h2>

<h3>[method:Float CatmullRom]( [param:Float t], [param:Float p0], [param:Float p1], [param:Float p2], [param:Float p3] )</h3>
<p>
t -- interpolation weight.<br />
p0, p1, p2, p3 -- the points defining the spline curve.<br /><br />
t -- 插值权重<br />
p0, p1, p2, p3 -- 定义了样条曲线的点。<br /><br />

Used internally by [page:SplineCurve SplineCurve].
在内部由[page:SplineCurve SplineCurve]所使用。
</p>

<h3>[method:Float QuadraticBezier]( [param:Float t], [param:Float p0], [param:Float p1], [param:Float p2] )</h3>
<p>
t -- interpolation weight.<br />
p0, p1, p2 -- the starting, control and end points defining the curve.<br /><br />
t -- 插值权重<br />
p0, p1, p2 -- 定义了该曲线的起始点、控制点和终止点。<br /><br />

Used internally by [page:QuadraticBezierCurve3 QuadraticBezierCurve3], [page:QuadraticBezierCurve QuadraticBezierCurve] and [page:Font Font].
在内部由[page:QuadraticBezierCurve3 QuadraticBezierCurve3][page:QuadraticBezierCurve QuadraticBezierCurve][page:Font Font]所使用。
</p>

<h3>[method:Float CubicBezier]( [param:Float t], [param:Float p0], [param:Float p1], [param:Float p2], [param:Float p3] )</h3>
<p>
t -- interpolation weight.<br />
p0, p1, p2, p3 -- the starting, control(twice) and end points defining the curve.<br /><br />
t -- 插值权重<br />
p0, p1, p2, p3 -- 定义了该曲线的起始点、两个控制点和终止点。<br /><br />

Used internally by [page:CubicBezierCurve3 CubicBezierCurve3], [page:CubicBezierCurve CubicBezierCurve] and [page:Font Font].
在内部由[page:CubicBezierCurve3 CubicBezierCurve3][page:CubicBezierCurve CubicBezierCurve][page:Font Font]所使用。
</p>

<h2>Source</h2>
<h2>源代码</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
Expand Down
106 changes: 52 additions & 54 deletions docs/api/zh/extras/core/Path.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
<body>
[page:CurvePath] &rarr;

<h1>[name]</h1>
<h1>路径([name]</h1>

<p class="desc">
A 2D path representation. The class provides methods for creating paths and contours of 2D shapes similar to the 2D Canvas API.
该类定义了二维路径,提供了一些类似2D Canvas API的方法来创建或者构造二维路径。
</p>

<h2>Example</h2>
<h2>示例</h2>

<code>
var path = new THREE.Path();
Expand All @@ -35,110 +35,108 @@ <h2>Example</h2>
</code>


<h2>Constructor</h2>
<h2>构造函数</h2>


<h3>[name]( [param:Array points] )</h3>
<p>
points -- (optional) array of [page:Vector2 Vector2s].<br /><br />
points -- (可选)[page:Vector2 Vector2s]数组。<br /><br />

Creates a Path from the points. The first point defines the offset, then successive points
are added to the [page:CurvePath.curves curves] array as [page:LineCurve LineCurves].<br /><br />
从传入的点中创建一条Path。第一个点定义了偏移量,
接下来的点作为[page:LineCurve LineCurves]被添加到[page:CurvePath.curves curves]数组中。<br /><br />

If no points are specified, an empty path is created and the [page:.currentPoint] is set to
the origin.
倘若没有点被指定,一条空路径将会被创建,[page:.currentPoint]将被设置为原点。
</p>


<h2>Properties</h2>
<p>See the base [page:CurvePath] class for common properties.</p>
<h2>属性</h2>
<p>请参阅其基类[page:CurvePath]来了解共有属性。</p>

<h3>[property:array currentPoint]</h3>
<p>The current offset of the path. Any new [page:Curve] added will start here.</p>
<p>路径当前的偏移量,任何新被加入的[page:Curve]将会从这里开始。</p>


<h2>Methods</h2>
<p>See the base [page:CurvePath] class for common methods.</p>
<h2>方法</h2>
<p>请参阅其基类[page:CurvePath]来了解共有方法。</p>

<h3>[method:null absarc]( [param:Float x], [param:Float y], [param:Float radius], [param:Float startAngle], [param:Float endAngle], [param:Float clockwise] )</h3>
<p>
x, y -- The absolute center of the arc.<br />
radius -- The radius of the arc.<br />
startAngle -- The start angle in radians.<br />
endAngle -- The end angle in radians.<br />
clockwise -- Sweep the arc clockwise. Defaults to *false*.<br /><br />
x, y -- 弧线的绝对中心。<br />
radius -- 弧线的半径。<br />
startAngle -- 起始角,以弧度来表示。<br />
endAngle -- 终止角,以弧度来表示。<br />
clockwise -- 以顺时针方向创建(扫过)弧线。默认值为*false*<br /><br />

Adds an absolutely positioned [page:EllipseCurve EllipseCurve] to the path.
添加一条绝对定位的[page:EllipseCurve EllipseCurve]到路径中。
</p>

<h3>[method:null absellipse]( [param:Float x], [param:Float y], [param:Float xRadius], [param:Float yRadius], [param:Float startAngle], [param:Float endAngle], [param:Float clockwise], [param:Float rotation] )</h3>
<p>
x, y -- The absolute center of the ellipse.<br />
xRadius -- The radius of the ellipse in the x axis.<br />
yRadius -- The radius of the ellipse in the y axis.<br />
startAngle -- The start angle in radians.<br />
endAngle -- The end angle in radians.<br />
clockwise -- Sweep the ellipse clockwise. Defaults to false.<br />
rotation -- The rotation angle of the ellipse in radians, counterclockwise from the positive X axis. Optional, defaults to 0.<br /><br />

Adds an absolutely positioned [page:EllipseCurve EllipseCurve] to the path.
x, y -- 椭圆的绝对中心。<br />
xRadius -- 椭圆x轴方向的半径。<br />
yRadius -- 椭圆y轴方向的半径。<br />
startAngle -- 起始角,以弧度来表示。<br />
endAngle -- 终止角,以弧度来表示。<br />
clockwise -- 以顺时针方向创建(扫过)椭圆。默认值为*false*。<br />
rotation -- 椭圆从X轴正方向逆时针的旋转角度(可选),以弧度表示,默认值为*0*。<br /><br />

添加一条绝对定位的[page:EllipseCurve EllipseCurve]到路径中。
</p>

<h3>[method:null arc]( [param:Float x], [param:Float y], [param:Float radius], [param:Float startAngle], [param:Float endAngle], [param:Float clockwise] )</h3>
<p>
x, y -- The center of the arc offset from the last call.<br />
radius -- The radius of the arc.<br />
startAngle -- The start angle in radians.<br />
endAngle -- The end angle in radians.<br />
clockwise -- Sweep the arc clockwise. Defaults to *false*.<br /><br />
x, y -- 弧线的中心来自上次调用后的偏移量。<br />
radius -- 弧线的半径。<br />
startAngle -- 起始角,以弧度来表示。<br />
endAngle -- 终止角,以弧度来表示。<br />
clockwise -- 以顺时针方向创建(扫过)弧线。默认值为*false*<br /><br />

Adds an [page:EllipseCurve EllipseCurve] to the path, positioned relative to [page:.currentPoint].
添加一条[page:EllipseCurve EllipseCurve]到路径中,位置相对于[page:.currentPoint]
</p>


<h3>[method:null bezierCurveTo]( [param:Float cp1X], [param:Float cp1Y], [param:Float cp2X], [param:Float cp2Y], [param:Float x], [param:Float y] )</h3>
<p>This creates a bezier curve from [page:.currentPoint] with (cp1X, cp1Y) and (cp2X, cp2Y) as control points and updates [page:.currentPoint] to x and y.</p>
<p>[page:.currentPoint]创建一条贝塞尔曲线,以(cp1X, cp1Y)(cp2X, cp2Y)作为控制点,并将[page:.currentPoint]更新到x,y。</p>

<h3>[method:null ellipse]( [param:Float x], [param:Float y], [param:Float xRadius], [param:Float yRadius], [param:Float startAngle], [param:Float endAngle], [param:Float clockwise], [param:Float rotation] )</h3>
<p>
x, y -- The center of the ellipse offset from the last call.<br />
xRadius -- The radius of the ellipse in the x axis.<br />
yRadius -- The radius of the ellipse in the y axis.<br />
startAngle -- The start angle in radians.<br />
endAngle -- The end angle in radians.<br />
clockwise -- Sweep the ellipse clockwise. Defaults to *false*.<br />
rotation -- The rotation angle of the ellipse in radians, counterclockwise from the positive X axis. Optional, defaults to *0*.<br /><br />

Adds an [page:EllipseCurve EllipseCurve] to the path, positioned relative to [page:.currentPoint].
x, y -- 椭圆的中心来自上次调用后的偏移量。The center of the ellipse offset from the last call.<br />
xRadius -- 椭圆x轴方向的半径。<br />
yRadius -- 椭圆y轴方向的半径。<br />
startAngle -- 起始角,以弧度来表示。<br />
endAngle -- 终止角,以弧度来表示。<br />
clockwise -- 以顺时针方向创建(扫过)椭圆。默认值为*false*<br />
rotation -- 椭圆从X轴正方向逆时针的旋转角度(可选),以弧度表示,默认值为*0*<br /><br />

添加一条[page:EllipseCurve EllipseCurve]到路径中,位置相对于[page:.currentPoint]
</p>

<h3>[method:null lineTo]( [param:Float x], [param:Float y] )</h3>
<p>Connects a [page:LineCurve] from [page:.currentPoint] to x, y onto the path.</p>
<p>在当前路径上,从[page:.currentPoint]连接一条直线到x,y。</p>


<h3>[method:null moveTo]( [param:Float x], [param:Float y] )</h3>
<p>Move the [page:.currentPoint] to x, y.</p>
<p>[page:.currentPoint]移动到x, y</p>


<h3>[method:null quadraticCurveTo]( [param:Float cpX], [param:Float cpY], [param:Float x], [param:Float y] )</h3>
<p>Creates a quadratic curve from [page:.currentPoint] with cpX and cpY as control point and updates [page:.currentPoint] to x and y.</p>
<p>[page:.currentPoint]创建一条二次曲线,以(cpX,cpY)作为控制点,并将[page:.currentPoint]更新到x,y。</p>

<h3>[method:null setFromPoints]( [param:Array vector2s] )</h3>
<p>
points -- array of [page:Vector2 Vector2s].<br /><br />
points -- [page:Vector2 Vector2]数组。<br /><br />

Points are added to the [page:CurvePath.curves curves]
array as [page:LineCurve LineCurves].
点将被作为[page:LineCurve LineCurves]加入到[page:CurvePath.curves curves]数组中。
</p>

<h3>[method:null splineThru] ( [param:Array points] ) </h3>
<p>
points - An array of [page:Vector2 Vector2s]<br /><br />
points -[page:Vector2 Vector2]数组。<br /><br />

Connects a new [page:SplineCurve] onto the path.
连接一条新的[page:SplineCurve]到路径上。
</p>

<h2>Source</h2>
<h2>源代码</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
Expand Down
Loading