略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: UI\Point

2024-12-23

Represents a position (x,y)

(UI 0.9.9)

简介

Points are used throughout UI to represent co-ordinates on a screen, control, or area.

类摘要

final class UI\Point {
/* 属性 */
public $x;
public $y;
/* Constructor */
public __construct(float $x, float $y)
/* 方法 */
public static at(float $point): UI\Point
public static at(UI\Size $size): UI\Point
public getX(): float
public getY(): float
public setX(float $point)
public setY(float $point)
}

属性

x

Holds the X co-ordinate, can be read/written directly

y

Holds the Y co-ordinate, can be read/written directly

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.ui-point.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3