Add Elliptic Curve and docs

This commit is contained in:
2026-02-15 09:14:59 +01:00
parent a8b05c2320
commit 66b5741b28
23 changed files with 2147 additions and 21 deletions
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/env python3
class Point:
"""
This simple class represent the Point at the coordinate x and y in a plan
Attributes:
x (Integer): Position at the x
y (Integer): Position at the y
"""
def __init__(self, x, y):
self._x = x
self._y = y
@property
def x(self):
return self._x
@property
def y(self):
return self._y
@x.setter
def x(self, x):
self._x = x
@y.setter
def y(self, y):
self._y = y
def __eq__(self, other):
print(self._x, other.x)
return self._x == other.x and self._y == other.y