hexlet/points

Points implementation

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

This package is not auto-updated.

Last update: 2024-04-21 23:55:25 UTC


README

github action status

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)";

Hexlet Ltd. logo

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.