Commit Graph

7 Commits

Author SHA1 Message Date
be9706fef8
basictypes: StraightLine:
- Fix return type hint for __find_line()
	- Rename Line to StraightLine
	- Getters for m and b in StraightLine
	- intercept in StraightLine
		Find the intercept point of 2 Striaght lines

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-01-30 18:40:59 +03:00
44ae995c2d
basictypes: Point: Added Eucledian distance from another point.
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-01-30 18:39:31 +03:00
1474e7e03a
mklines: rewrite main to use new classes
Test with
	python mklines.py polar_cords.csv
	Shows correct conversion from polar to cart
	with new classes

Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-01-25 23:01:24 +03:00
d0a2cbb0db
cleanup
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-01-25 22:45:45 +03:00
80733cbedb
basictypes: working well with lines
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-01-25 22:26:15 +03:00
5d73bca7ba
basictypes: implement gety/x, line m/b
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-01-25 22:14:28 +03:00
5461422c6b init: early test, classes WIP 2022-01-25 21:48:48 +03:00