# 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 function __construct(float `$x`, float `$y`)
/* 方法 */
public static function at(float `$point`): UI\Point
public static function at(UI\Size `$size`): UI\Point
public function getX(): float
public function getY(): float
public function setX(float `$point`)
public function 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

## 目录

- UI\Point::at — Size Coercion
- UI\Point::__construct — Construct a new Point
- UI\Point::getX — Retrieves X
- UI\Point::getY — Retrieves Y
- UI\Point::setX — Set X
- UI\Point::setY — Set Y

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open