Skip to content

Commit c495c47

Browse files
webglzhangwebglzhang
andauthored
fix matrix.lookAt parameter document (#22969)
Co-authored-by: webglzhang <[email protected]>
1 parent bc507d8 commit c495c47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/api/en/math/Matrix4.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ <h3>[method:Float getMaxScaleOnAxis]()</h3>
202202
<h3>[method:this identity]()</h3>
203203
<p>Resets this matrix to the [link:https://en.wikipedia.org/wiki/Identity_matrix identity matrix].</p>
204204

205-
<h3>[method:this lookAt]( [param:Vector3 eye], [param:Vector3 center], [param:Vector3 up], )</h3>
205+
<h3>[method:this lookAt]( [param:Vector3 eye], [param:Vector3 target], [param:Vector3 up], )</h3>
206206
<p>
207-
Constructs a rotation matrix, looking from [page:Vector3 eye] towards [page:Vector3 center]
207+
Constructs a rotation matrix, looking from [page:Vector3 eye] towards [page:Vector3 target]
208208
oriented by the [page:Vector3 up] vector.
209209
</p>
210210

docs/api/zh/math/Matrix4.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ <h3>[method:Float getMaxScaleOnAxis]()</h3>
187187
<h3>[method:this identity]()</h3>
188188
<p>将当前矩阵重置为单位矩阵[link:https://en.wikipedia.org/wiki/Identity_matrix identity matrix]。</p>
189189

190-
<h3>[method:this lookAt]( [param:Vector3 eye], [param:Vector3 center], [param:Vector3 up], )</h3>
190+
<h3>[method:this lookAt]( [param:Vector3 eye], [param:Vector3 target], [param:Vector3 up], )</h3>
191191
<p>
192-
构造一个旋转矩阵,从[page:Vector3 eye] 指向 [page:Vector3 center],由向量 [page:Vector3 up] 定向。
192+
构造一个旋转矩阵,从[page:Vector3 eye] 指向 [page:Vector3 target],由向量 [page:Vector3 up] 定向。
193193
</p>
194194

195195
<h3>[method:this makeRotationAxis]( [param:Vector3 axis], [param:Float theta] )</h3>

0 commit comments

Comments
 (0)