1 | <?php |
||
17 | class Line |
||
18 | { |
||
19 | /** @var Point */ |
||
20 | private $startPoint; |
||
21 | |||
22 | /** @var Point */ |
||
23 | private $endPoint; |
||
24 | |||
25 | /** |
||
26 | * @param Point $startPoint |
||
27 | * @param Point $endPoint |
||
28 | */ |
||
29 | public function __construct(Point $startPoint, Point $endPoint) |
||
34 | |||
35 | /** |
||
36 | * @param Point $a |
||
37 | * @param Point $b |
||
38 | * |
||
39 | * @return Line |
||
40 | */ |
||
41 | public static function combineToRisingLine(Point $a, Point $b) |
||
50 | |||
51 | /** |
||
52 | * @return Point |
||
53 | */ |
||
54 | public function getStartPoint() |
||
58 | |||
59 | /** |
||
60 | * @return Point |
||
61 | */ |
||
62 | public function getEndPoint() |
||
66 | |||
67 | /** |
||
68 | * @return LinearFunction |
||
69 | */ |
||
70 | public function getLinearFunction() |
||
74 | } |
||
75 |