Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
7646acb8
D
Docs
项目概览
OpenHarmony
/
Docs
接近 2 年 前同步成功
通知
159
Star
292
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看板
提交
7646acb8
编写于
3月 07, 2023
作者:
C
cff-gite
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改docs
Signed-off-by:
N
cff-gite
<
chenfeifei8@huawei.com
>
上级
db30fb91
变更
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
浏览文件 @
7646acb8
...
@@ -2661,7 +2661,7 @@ try {
...
@@ -2661,7 +2661,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
计算两个旋转矩阵之间的角度变化。
计算两个旋转矩阵之间的角度变化。
...
@@ -2717,7 +2717,7 @@ try {
...
@@ -2717,7 +2717,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
>>
得到两个旋转矩阵之间的角度变化。
得到两个旋转矩阵之间的角度变化。
...
@@ -2777,7 +2777,7 @@ try {
...
@@ -2777,7 +2777,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
根据旋转矢量获取旋转矩阵。
根据旋转矢量获取旋转矩阵。
...
@@ -2819,7 +2819,7 @@ try {
...
@@ -2819,7 +2819,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
>>
根据旋转矢量获取旋转矩阵。
根据旋转矢量获取旋转矩阵。
...
@@ -2866,7 +2866,7 @@ try {
...
@@ -2866,7 +2866,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
根据指定坐标系映射旋转矩阵。
根据指定坐标系映射旋转矩阵。
...
@@ -2913,7 +2913,7 @@ try {
...
@@ -2913,7 +2913,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
>>
根据指定坐标系映射旋转矩阵。
根据指定坐标系映射旋转矩阵。
...
@@ -2964,7 +2964,7 @@ try {
...
@@ -2964,7 +2964,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
根据旋转向量计算归一化四元数。
根据旋转向量计算归一化四元数。
...
@@ -3006,7 +3006,7 @@ try {
...
@@ -3006,7 +3006,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
>>
根据旋转向量计算归一化四元数。
根据旋转向量计算归一化四元数。
...
@@ -3052,7 +3052,7 @@ try {
...
@@ -3052,7 +3052,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
根据旋转矩阵计算设备方向。
根据旋转矩阵计算设备方向。
...
@@ -3101,7 +3101,7 @@ try {
...
@@ -3101,7 +3101,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
>>
根据旋转矩阵计算设备的方向。
根据旋转矩阵计算设备的方向。
...
@@ -3193,7 +3193,7 @@ try {
...
@@ -3193,7 +3193,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
>
根据重力矢量和地磁矢量计算旋转矩阵。
根据重力矢量和地磁矢量计算旋转矩阵。
...
@@ -3239,7 +3239,7 @@ try {
...
@@ -3239,7 +3239,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
获取设备上的所有传感器信息。
获取设备上的所有传感器信息。
...
@@ -3249,7 +3249,7 @@ getSensorList(callback: AsyncCallback<Array<Sensor>>): void
...
@@ -3249,7 +3249,7 @@ getSensorList(callback: AsyncCallback<Array<Sensor>>): void
| 参数名 | 类型 | 必填 | 说明 |
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ---------------------------------------------- | ---- | ---------------- |
| -------- | ---------------------------------------------- | ---- | ---------------- |
| callback | AsyncCallback
<Array
&
lt
;[
Sensor
](
#sensor9
)&
gt
;
>
| 是 | 回调函数,返回传感器属性列表。 |
| callback | AsyncCallback
<
Array
<
[Sensor](#sensor9)
>>
| 是 | 回调函数,返回传感器属性列表。 |
**错误码**
:
**错误码**
:
...
@@ -3279,7 +3279,7 @@ try {
...
@@ -3279,7 +3279,7 @@ try {
## sensor.getSensorList<sup>9+</sup>
## sensor.getSensorList<sup>9+</sup>
getSensorList(): Promise
<
Array
&
lt
;
Sensor
&
gt
;
>
getSensorList(): Promise
<
Array
<
Sensor
>>
获取设备上的所有传感器信息。
获取设备上的所有传感器信息。
...
@@ -3289,7 +3289,7 @@ try {
...
@@ -3289,7 +3289,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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录