PHP Conference Japan 2024

UI\Point::at

(UI 1.0.2)

UI\Point::at尺寸強制轉換

說明

public static UI\Point::at(float $point): UI\Point
public static UI\Point::at(UI\Size $size): UI\Point

將會回傳一個 UI\Point 物件,其中 x 和 y 等於提供的數值,數值可以是浮點數或 UI\Size 形式。

參數

point

x 和 y 的值

size

要轉換的 Size

回傳值

產生的 Point

新增筆記

使用者貢獻的筆記

此頁面尚無使用者貢獻的筆記。
To Top