新聞中心
MmiPoint

創(chuàng)新互聯(lián)專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務,包含不限于成都做網(wǎng)站、網(wǎng)站設計、銅山網(wǎng)絡推廣、重慶小程序開發(fā)、銅山網(wǎng)絡營銷、銅山企業(yè)策劃、銅山品牌公關、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運營等,從售前售中售后,我們都將竭誠為您服務,您的肯定,是我們最大的嘉獎;創(chuàng)新互聯(lián)為所有大學生創(chuàng)業(yè)者提供銅山建站搭建服務,24小時服務熱線:18982081108,官方網(wǎng)址:www.cdcxhl.com
java.lang.Object
|---ohos.multimodalinput.event.MmiPoint
public class MmiPoint
extends Object表示給定坐標系中的 x、y 或 z 坐標。
Since:
3
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| MmiPoint(float px, float py) | 用于創(chuàng)建具有指定 x 和 y 坐標的 MmiPoint 對象的構(gòu)造函數(shù)。 |
| MmiPoint(float px, float py, float pz) | 用于創(chuàng)建具有指定 x、y 和 z 坐標的 MmiPoint 對象的構(gòu)造函數(shù)。 |
方法總結(jié)
| 修飾符和類型 | 方法 | 描述 |
|---|---|---|
| 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 |
構(gòu)造函數(shù)詳細信息
MmiPoint
public MmiPoint(float px, float py)
用于創(chuàng)建具有指定 x 和 y 坐標的 MmiPoint 對象的構(gòu)造函數(shù)。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| px | 表示 x 坐標。 |
| py | 表示 y 坐標。 |
Since:
3
MmiPoint
public MmiPoint(float px, float py, float pz)
用于創(chuàng)建具有指定 x、y 和 z 坐標的 MmiPoint 對象的構(gòu)造函數(shù)。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| 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
網(wǎng)頁標題:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSMmiPoint
當前URL:http://www.dlmjj.cn/article/cdjcdgc.html


咨詢
建站咨詢
