dc42010f0b
mklines: find intercept of last line in a list
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-02-14 15:33:53 +03:00
4c4366a5d1
StraightLine: fixed typo while referencing line get_m()
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-02-14 15:03:26 +03:00
bc790e21c3
mklines: fixes and batch calculation
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-02-14 14:46:47 +03:00
be1a2e5300
basictypes: Catch zero division with virtical lines
...
Signed-off-by: HeshamTB <hishaminv@gmail.com>
2022-02-14 14:44:35 +03:00
131283890f
Compute lines for the batch
2022-01-30 19:33:46 +03:00
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