Commit Graph

8 Commits

Author SHA1 Message Date
Pascal Lais
1a53f7aaa1 Enable unsafe-load-any-extension for pylint 2020-03-09 07:51:13 +01:00
Pascal Lais
d8cc7fc6f9 Add sweep module
The sweep module contains a sweep class and a class for the nearest
neighbor sweep alorithm.
2020-03-09 07:50:28 +01:00
Pascal Lais
4a483b939a Add method str to linesegment
The method str returns the line segment coordinates as string.
2020-03-09 07:49:10 +01:00
Pascal Lais
6f83b57ffb Add sort function and class methods to class Point
The sort function takes a list of Point objects and sorts them either
by their x or y coordinate using merge sort.
Also added a method set_random, that sets the coordinates to random
values and a method str, that returns the coordinates as string.
2020-03-09 07:48:07 +01:00
Pascal Lais
778240a1d3 Add linesegment module
The module defines a LineSegment class that displays a line segment in
two-dimensional coordinate system. It is defined by a start- and an
endpoint. It also contains a method to calculate the length.
2020-03-08 11:00:14 +01:00
Pascal Lais
a14f96ab2a Add point module
The point module defines a Point class, that displays a Point in a
two-dimensional coordinate system. An object of the class contains a x-
and y-coordinate and a setter and getter method for each at this point.
2020-03-08 10:57:40 +01:00
Pascal Lais
5df3f47563 Add code-vorkspace files to .gitignore 2020-03-07 12:00:23 +01:00
87ab6091b3 Initial commit 2020-03-07 08:39:25 +01:00