Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
5eb5458c
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
5eb5458c
编写于
3月 09, 2023
作者:
O
openharmony_ci
提交者:
Gitee
3月 09, 2023
浏览文件
操作
浏览文件
下载
差异文件
!15628 修改docs文档
Merge pull request !15628 from 陈飞飞/cherry-pick-1678240642
上级
03b434fa
02be13cf
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
15 addition
and
15 deletion
+15
-15
zh-cn/application-dev/reference/apis/js-apis-sensor.md
zh-cn/application-dev/reference/apis/js-apis-sensor.md
+15
-15
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-sensor.md
浏览文件 @
5eb5458c
...
@@ -2660,7 +2660,7 @@ try {
...
@@ -2660,7 +2660,7 @@ try {
## sensor.getAngleVariation<sup>9+</sup>
## sensor.getAngleVariation<sup>9+</sup>
getAngleVariation(currentRotationMatrix: Array
<
number
>
, preRotationMatrix: Array
<
number
>
,
getAngleVariation(currentRotationMatrix: Array
<
number
>
, preRotationMatrix: Array
<
number
>
,
callback: AsyncCallback
<Array
&
lt
;
number
&
gt
;
>
): void
callback: AsyncCallback
<
Array
<
number
>>
): void
计算两个旋转矩阵之间的角度变化。
计算两个旋转矩阵之间的角度变化。
...
@@ -2716,7 +2716,7 @@ try {
...
@@ -2716,7 +2716,7 @@ try {
## sensor.getAngleVariation<sup>9+</sup>
## sensor.getAngleVariation<sup>9+</sup>
getAngleVariation(currentRotationMatrix: Array
<
number
>
, preRotationMatrix: Array
<
number
>
): Promise
<Array
&
lt
;
number
&
gt
;
>
getAngleVariation(currentRotationMatrix: Array
<
number
>
, preRotationMatrix: Array
<
number
>
): Promise
<
Array
<
number
>>
得到两个旋转矩阵之间的角度变化。
得到两个旋转矩阵之间的角度变化。
...
@@ -2776,7 +2776,7 @@ try {
...
@@ -2776,7 +2776,7 @@ try {
## sensor.getRotationMatrix<sup>9+</sup>
## sensor.getRotationMatrix<sup>9+</sup>
getRotationMatrix(rotationVector: Array
<
number
>
, callback: AsyncCallback
<Array
&
lt
;
number
&
gt
;
>
): void
getRotationMatrix(rotationVector: Array
<
number
>
, callback: AsyncCallback
<
Array
<
number
>>
): void
根据旋转矢量获取旋转矩阵。
根据旋转矢量获取旋转矩阵。
...
@@ -2818,7 +2818,7 @@ try {
...
@@ -2818,7 +2818,7 @@ try {
## sensor.getRotationMatrix<sup>9+</sup>
## sensor.getRotationMatrix<sup>9+</sup>
getRotationMatrix(rotationVector: Array
<
number
>
): Promise
<Array
<
number
&
gt
;
>
getRotationMatrix(rotationVector: Array
<
number
>
): Promise
<
Array
<
number
>>
根据旋转矢量获取旋转矩阵。
根据旋转矢量获取旋转矩阵。
...
@@ -2865,7 +2865,7 @@ try {
...
@@ -2865,7 +2865,7 @@ try {
## sensor.transformRotationMatrix<sup>9+</sup>
## sensor.transformRotationMatrix<sup>9+</sup>
transformRotationMatrix(inRotationVector: Array
<
number
>
, coordinates: CoordinatesOptions,
transformRotationMatrix(inRotationVector: Array
<
number
>
, coordinates: CoordinatesOptions,
callback: AsyncCallback
<Array
&
lt
;
number
&
gt
;
>
): void
callback: AsyncCallback
<
Array
<
number
>>
): void
根据指定坐标系映射旋转矩阵。
根据指定坐标系映射旋转矩阵。
...
@@ -2912,7 +2912,7 @@ try {
...
@@ -2912,7 +2912,7 @@ try {
## sensor.transformRotationMatrix<sup>9+</sup>
## sensor.transformRotationMatrix<sup>9+</sup>
transformRotationMatrix(inRotationVector: Array
<
number
>
, coordinates: CoordinatesOptions): Promise
<Array
&
lt
;
number
&
gt
;
>
transformRotationMatrix(inRotationVector: Array
<
number
>
, coordinates: CoordinatesOptions): Promise
<
Array
<
number
>>
根据指定坐标系映射旋转矩阵。
根据指定坐标系映射旋转矩阵。
...
@@ -2963,7 +2963,7 @@ try {
...
@@ -2963,7 +2963,7 @@ try {
## sensor.getQuaternion<sup>9+</sup>
## sensor.getQuaternion<sup>9+</sup>
getQuaternion(rotationVector: Array
<
number
>
, callback: AsyncCallback
<Array
&
lt
;
number
&
gt
;
>
): void
getQuaternion(rotationVector: Array
<
number
>
, callback: AsyncCallback
<
Array
<
number
>>
): void
根据旋转向量计算归一化四元数。
根据旋转向量计算归一化四元数。
...
@@ -3005,7 +3005,7 @@ try {
...
@@ -3005,7 +3005,7 @@ try {
## sensor.getQuaternion<sup>9+</sup>
## sensor.getQuaternion<sup>9+</sup>
getQuaternion(rotationVector: Array
<
number
>
): Promise
<Array
&
lt
;
number
&
gt
;
>
getQuaternion(rotationVector: Array
<
number
>
): Promise
<
Array
<
number
>>
根据旋转向量计算归一化四元数。
根据旋转向量计算归一化四元数。
...
@@ -3051,7 +3051,7 @@ try {
...
@@ -3051,7 +3051,7 @@ try {
## sensor.getOrientation<sup>9+</sup>
## sensor.getOrientation<sup>9+</sup>
getOrientation(rotationMatrix: Array
<
number
>
, callback: AsyncCallback
<Array
&
lt
;
number
&
gt
;
>
): void
getOrientation(rotationMatrix: Array
<
number
>
, callback: AsyncCallback
<
Array
<
number
>>
): void
根据旋转矩阵计算设备方向。
根据旋转矩阵计算设备方向。
...
@@ -3100,7 +3100,7 @@ try {
...
@@ -3100,7 +3100,7 @@ try {
## sensor.getOrientation<sup>9+</sup>
## sensor.getOrientation<sup>9+</sup>
getOrientation(rotationMatrix: Array
<
number
>
): Promise
<Array
&
lt
;
number
&
gt
;
>
getOrientation(rotationMatrix: Array
<
number
>
): Promise
<
Array
<
number
>>
根据旋转矩阵计算设备的方向。
根据旋转矩阵计算设备的方向。
...
@@ -3192,7 +3192,7 @@ try {
...
@@ -3192,7 +3192,7 @@ try {
## sensor.getRotationMatrix<sup>9+</sup>
## sensor.getRotationMatrix<sup>9+</sup>
getRotationMatrix(gravity: Array
<
number
>
, geomagnetic: Array
<
number
>
,
): Promise
<
RotationMatrixResponse
>
getRotationMatrix(gravity: Array
<
number
>
, geomagnetic: Array
<
number
>
): Promise
<
RotationMatrixResponse
>
根据重力矢量和地磁矢量计算旋转矩阵。
根据重力矢量和地磁矢量计算旋转矩阵。
...
@@ -3238,7 +3238,7 @@ try {
...
@@ -3238,7 +3238,7 @@ try {
## sensor.getSensorList<sup>9+</sup>
## sensor.getSensorList<sup>9+</sup>
getSensorList(callback: AsyncCallback
<Array
&
lt
;
Sensor
&
gt
;
>
): void
getSensorList(callback: AsyncCallback
<
Array
<
Sensor
>>
): void
获取设备上的所有传感器信息。
获取设备上的所有传感器信息。
...
@@ -3248,7 +3248,7 @@ getSensorList(callback: AsyncCallback<Array<Sensor>>): void
...
@@ -3248,7 +3248,7 @@ getSensorList(callback: AsyncCallback<Array<Sensor>>): void
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ---------------------------------------------- | ---- | ---------------- |
| -------- | ---------------------------------------------- | ---- | ---------------- |
| callback | AsyncCallback
<Array
&
lt
;[
Sensor
](
#sensor9
)&
gt
;
>
| 是 | 回调函数,返回传感器属性列表。 |
| callback | AsyncCallback
<
Array
<
[Sensor](#sensor9)
>>
| 是 | 回调函数,返回传感器属性列表。 |
**错误码**
:
**错误码**
:
...
@@ -3278,7 +3278,7 @@ try {
...
@@ -3278,7 +3278,7 @@ try {
## sensor.getSensorList<sup>9+</sup>
## sensor.getSensorList<sup>9+</sup>
getSensorList(): Promise
<
Array
&
lt
;
Sensor
&
gt
;
>
getSensorList(): Promise
<
Array
<
Sensor
>>
获取设备上的所有传感器信息。
获取设备上的所有传感器信息。
...
@@ -3288,7 +3288,7 @@ try {
...
@@ -3288,7 +3288,7 @@ try {
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| ------- | ---------------------------------------- | ---- | ---------------- |
| ------- | ---------------------------------------- | ---- | ---------------- |
| promise | Promise
<Array
&
lt
;[
Sensor
](
#sensor9
)&
gt
;
>
| 是 | Promise对象,返回传感器属性列表。 |
| promise | Promise
<
Array
<
[Sensor](#sensor9)
>>
| 是 | Promise对象,返回传感器属性列表。 |
**错误码**
:
**错误码**
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录