hexlet / points
Points 实现
v1.1.0
2022-01-16 12:59 UTC
Requires
- php: >=7.4 || >=8.1
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
This package is not auto-updated.
Last update: 2024-09-23 01:50:50 UTC
README
与 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 团队和社区创建和维护。Hexlet 是一个教育项目。了解更多关于 Hexlet。
查看最活跃的贡献者 在 hexlet-friends。