hexlet/points

v1.1.0 2022-01-16 12:59 UTC

This package is not auto-updated.

Last update: 2024-09-23 01:50:50 UTC


README

github action status

与 Points 交互的函数

<?php

use function Php\Points\Points\makePoint;
use function Php\Points\Points\getX;
use function Php\Points\Points\getY;
use function Php\Points\Points\toString;

示例

<?php

$point = makePoint(1, 2);

$x = getX($point); // $x = 1;
$y = getY($point) // $y = 2;

$example = toString($point); // $example = "(1, 2)";

Hexlet Ltd. logo

此仓库由 Hexlet 团队和社区创建和维护。Hexlet 是一个教育项目。了解更多关于 Hexlet

查看最活跃的贡献者 在 hexlet-friends