Commit Graph

7 Commits

Author SHA1 Message Date
94ad6def57 Update linesegment.py
All checks were successful
continuous-integration/drone/push Build is passing
Don't sort start and endpoint by x coordinate
2020-03-16 19:46:36 +01:00
867745fe4e Add draw implementation for existing classes
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-11 19:49:47 +01:00
6bf4368c60 Update linesegment.py
Make method str() to an overwritten operator __str__()
2020-03-10 08:36:47 +01:00
048f6a08e6 Add function intersection for line segments 2020-03-09 20:15:56 +01:00
978bb9b789 Add function to generate random line segments 2020-03-09 18:51:41 +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
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