{"action":"created","comment":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/43665540","id":43665540,"diff_hunk":"@@ -0,0 +1,193 @@\n+package ru.unn.agile.IntersectionOfSegments;\n+\n+enum TypeOfIntersection {\n+    NotIntersection, IntersectionInOnePoint, OnePartOfOther, SegmentsHaveCommonPart\n+}\n+\n+public class Segment {\n+    private Point start;\n+    private Point finish;\n+\n+    Segment(final Point start, final Point finish) {\n+        this.start = start;\n+        this.finish = finish;\n+    }\n+\n+    public void setFinish(final Point finish) {\n+        this.finish = finish;\n+    }\n+\n+    public void setStart(final Point start) {\n+        this.start = start;\n+    }\n+\n+    public Point getStart() {\n+        return start;\n+    }\n+\n+    public Point getFinish() {\n+        return finish;\n+    }\n+\n+    public double getStartX() {\n+        return start.getX();\n+    }\n+\n+    public double getFinishX() {\n+        return finish.getX();\n+    }\n+\n+    public double getStartY() {\n+        return start.getY();\n+    }\n+\n+    public double getFinishY() {\n+        return finish.getY();\n+    }\n+\n+    public double getLengthSegment() {\n+        return calculationLengthOfSegment();\n+    }\n+\n+    @Override\n+    public int hashCode() {\n+        final int prime = 21;\n+        int result = 1;\n+        result = prime * result + start.hashCode();\n+        result = prime * result + finish.hashCode();\n+        return result;\n+    }\n+\n+    @Override\n+    public boolean equals(final Object object) {\n+        Segment segment = (Segment) object;\n+        return this.getStart() == segment.getStart() && this.getFinish() == segment.getFinish();\n+    }\n+\n+    public Intersection isIntersectedWith(final Segment segment) {\n+        return findIntersection(this, segment);\n+    }\n+\n+    private Intersection findIntersection(final Segment segment1, final Segment segment2) {\n+        TypeOfIntersection typeOfIntersection;\n+        Point startPointOfIntersection;\n+        Point finishPointOfIntersection;\n+\n+        if (segment1.isIntersection(segment2)) {\n+            Double k1 = calculateSlope(segment1);","path":"code/zhbanova-anna/src/main/java/ru/unn/agile/IntersectionOfSegments/Model/Segment.java","position":77,"original_position":77,"commit_id":"2d0a06a3224a75d784d8aa76cfdd6199961150a7","original_commit_id":"2d0a06a3224a75d784d8aa76cfdd6199961150a7","user":{"login":"Daniil-Osokin","id":2491976,"avatar_url":"https://avatars.githubusercontent.com/u/2491976?v=3","gravatar_id":"","url":"https://api.github.com/users/Daniil-Osokin","html_url":"https://github.com/Daniil-Osokin","followers_url":"https://api.github.com/users/Daniil-Osokin/followers","following_url":"https://api.github.com/users/Daniil-Osokin/following{/other_user}","gists_url":"https://api.github.com/users/Daniil-Osokin/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniil-Osokin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniil-Osokin/subscriptions","organizations_url":"https://api.github.com/users/Daniil-Osokin/orgs","repos_url":"https://api.github.com/users/Daniil-Osokin/repos","events_url":"https://api.github.com/users/Daniil-Osokin/events{/privacy}","received_events_url":"https://api.github.com/users/Daniil-Osokin/received_events","type":"User","site_admin":false},"body":"Может `slope1`? Думаю, можно без boxed типов обойтись.","created_at":"2015-11-02T18:55:36Z","updated_at":"2015-11-02T18:55:36Z","html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/71#discussion_r43665540","pull_request_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/71","_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/43665540"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/71#discussion_r43665540"},"pull_request":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/71","id":48984905,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/71","diff_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/71.diff","patch_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/71.patch","issue_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/71","number":71,"state":"open","locked":false,"title":"Жбанова - Лабораторная работа #1","user":{"login":"ZhbanovaAnna","id":5418790,"avatar_url":"https://avatars.githubusercontent.com/u/5418790?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhbanovaAnna","html_url":"https://github.com/ZhbanovaAnna","followers_url":"https://api.github.com/users/ZhbanovaAnna/followers","following_url":"https://api.github.com/users/ZhbanovaAnna/following{/other_user}","gists_url":"https://api.github.com/users/ZhbanovaAnna/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhbanovaAnna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhbanovaAnna/subscriptions","organizations_url":"https://api.github.com/users/ZhbanovaAnna/orgs","repos_url":"https://api.github.com/users/ZhbanovaAnna/repos","events_url":"https://api.github.com/users/ZhbanovaAnna/events{/privacy}","received_events_url":"https://api.github.com/users/ZhbanovaAnna/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-28T10:04:19Z","updated_at":"2015-11-02T18:55:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98bc0df631d0e3fcd1fe34a1db2751fcbc75a265","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/71/commits","review_comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/71/comments","review_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/71/comments","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/2d0a06a3224a75d784d8aa76cfdd6199961150a7","head":{"label":"ZhbanovaAnna:lab1-tdd-intersection-of-segments","ref":"lab1-tdd-intersection-of-segments","sha":"2d0a06a3224a75d784d8aa76cfdd6199961150a7","user":{"login":"ZhbanovaAnna","id":5418790,"avatar_url":"https://avatars.githubusercontent.com/u/5418790?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhbanovaAnna","html_url":"https://github.com/ZhbanovaAnna","followers_url":"https://api.github.com/users/ZhbanovaAnna/followers","following_url":"https://api.github.com/users/ZhbanovaAnna/following{/other_user}","gists_url":"https://api.github.com/users/ZhbanovaAnna/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhbanovaAnna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhbanovaAnna/subscriptions","organizations_url":"https://api.github.com/users/ZhbanovaAnna/orgs","repos_url":"https://api.github.com/users/ZhbanovaAnna/repos","events_url":"https://api.github.com/users/ZhbanovaAnna/events{/privacy}","received_events_url":"https://api.github.com/users/ZhbanovaAnna/received_events","type":"User","site_admin":false},"repo":{"id":44627531,"name":"agile-course-practice","full_name":"ZhbanovaAnna/agile-course-practice","owner":{"login":"ZhbanovaAnna","id":5418790,"avatar_url":"https://avatars.githubusercontent.com/u/5418790?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhbanovaAnna","html_url":"https://github.com/ZhbanovaAnna","followers_url":"https://api.github.com/users/ZhbanovaAnna/followers","following_url":"https://api.github.com/users/ZhbanovaAnna/following{/other_user}","gists_url":"https://api.github.com/users/ZhbanovaAnna/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhbanovaAnna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhbanovaAnna/subscriptions","organizations_url":"https://api.github.com/users/ZhbanovaAnna/orgs","repos_url":"https://api.github.com/users/ZhbanovaAnna/repos","events_url":"https://api.github.com/users/ZhbanovaAnna/events{/privacy}","received_events_url":"https://api.github.com/users/ZhbanovaAnna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZhbanovaAnna/agile-course-practice","description":"Проект-шаблон для выполнения лабораторных работ по курсу Agile Development","fork":true,"url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice","forks_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/forks","keys_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/events","assignees_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/merges","archive_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/ZhbanovaAnna/agile-course-practice/releases{/id}","created_at":"2015-10-20T18:45:19Z","updated_at":"2015-10-20T18:45:20Z","pushed_at":"2015-11-01T12:44:57Z","git_url":"git://github.com/ZhbanovaAnna/agile-course-practice.git","ssh_url":"git@github.com:ZhbanovaAnna/agile-course-practice.git","clone_url":"https://github.com/ZhbanovaAnna/agile-course-practice.git","svn_url":"https://github.com/ZhbanovaAnna/agile-course-practice","homepage":"","size":222,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"UNN-VMK-Software:master","ref":"master","sha":"aa6a33443d674151b5993e031bca14b78e06eeb9","user":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"repo":{"id":44518750,"name":"agile-course-practice","full_name":"UNN-VMK-Software/agile-course-practice","owner":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice","description":"Проект-шаблон для выполнения лабораторных работ по курсу Agile Development","fork":false,"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice","forks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/forks","keys_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/events","assignees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/merges","archive_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/releases{/id}","created_at":"2015-10-19T07:42:22Z","updated_at":"2015-10-29T19:46:12Z","pushed_at":"2015-11-02T18:01:28Z","git_url":"git://github.com/UNN-VMK-Software/agile-course-practice.git","ssh_url":"git@github.com:UNN-VMK-Software/agile-course-practice.git","clone_url":"https://github.com/UNN-VMK-Software/agile-course-practice.git","svn_url":"https://github.com/UNN-VMK-Software/agile-course-practice","homepage":"","size":2961,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":23,"forks":42,"open_issues":23,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/71"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/71"},"issue":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/71"},"comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/2d0a06a3224a75d784d8aa76cfdd6199961150a7"}}}}