您的位置:58脚本 > 鸿蒙系统 鸿蒙OS MmiPoint

鸿蒙系统 鸿蒙OS MmiPoint

2023-04-17 10:32 鸿蒙OS开发文档

鸿蒙系统 鸿蒙OS MmiPoint

鸿蒙系统 鸿蒙OS MmiPoint

鸿蒙系统

MmiPoint

java.lang.Object

|---ohos.multimodalinput.event.MmiPoint

public class MmiPoint
extends Object

表示给定坐标系中的 x、y 或 z 坐标。

Since:

3

构造函数摘要

构造函数 描述
MmiPoint(float px, float py) 用于创建具有指定 x 和 y 坐标的 MmiPoint 对象的构造函数。
MmiPoint(float px, float py, float pz) 用于创建具有指定 x、y 和 z 坐标的 MmiPoint 对象的构造函数。

方法总结

修饰符和类型 方法 描述
float getX() 获取 x 坐标。
float getY() 获取 y 坐标。
float getZ() 获取 z 坐标。
String toString() 获取此 MmiPoint 对象的字符串表示形式,其中指定了 x、y 和 z 坐标。
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

构造函数详细信息

MmiPoint

public MmiPoint(float px, float py)

用于创建具有指定 x 和 y 坐标的 MmiPoint 对象的构造函数。

参数:

参数名称 参数描述
px 表示 x 坐标。
py 表示 y 坐标。

Since:

3

MmiPoint

public MmiPoint(float px, float py, float pz)

用于创建具有指定 x、y 和 z 坐标的 MmiPoint 对象的构造函数。

参数:

参数名称 参数描述
px 表示 x 坐标。
py 表示 y 坐标。
pz 表示 z 坐标。

Since:

3

方法详情

getX

public float getX()

获取 x 坐标。

返回:

返回 x 坐标。

Since:

3

getY

public float getY()

获取 y 坐标。

返回:

返回 y 坐标。

Since:

3

getZ

public float getZ()

获取 z 坐标。

返回:

返回 z 坐标。

Since:

3

toString

public String toString()

获取此 MmiPoint 对象的字符串表示形式,其中指定了 x、y 和 z 坐标。

覆盖:

类 Object 中的 toString

返回:

返回此 MmiPoint 对象的字符串表示形式,其中指定了 x、y 和 z 坐标,格式为 MmiPoint{px=x 坐标值,py=y 坐标值,pz=z 坐标值}。

Since:

3

阅读全文
以上是58脚本为你收集整理的鸿蒙系统 鸿蒙OS MmiPoint全部内容。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
相关文章
© 2024 58脚本 58jiaoben.com 版权所有 联系我们
桂ICP备12005667号-28 Powered by CMS