<?php require __DIR__ . '/../vendor/autoload.php'; use tarcisio\p2d\Point; use tarcisio\p2d\Line; $p1 = new Point(10, 10); $p2 = new point(20, 20); $p2->multiply($p1->x, 0); $line = new Line($p1->x, $p1->y, $p2->x, $p2->y); print $p1 . PHP_EOL; print $p2 . PHP_EOL; print $line . PHP_EOL;