hexlet / points
Points implementation
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 10
Forks: 2
Open Issues: 0
pkg:composer/hexlet/points
Requires
- php: >=7.4 || >=8.1
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
README
Functions for working with 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;
Examples
<?php $point = makePoint(1, 2); $x = getX($point); // $x = 1; $y = getY($point) // $y = 2; $example = toString($point); // $example = "(1, 2)";
This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.
See most active contributors on hexlet-friends.
