Skip to content

Commit

Permalink
Use x/y_coordinate for init params
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicRiegel authored and Loic Riegel committed Mar 26, 2024
1 parent 75fab8e commit 7d3ab75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TP3/Correction/vectors.py
Expand Up @@ -28,9 +28,9 @@ def __str__(self) -> str:


class Vector:
def __init__(self, x: float, y: float) -> None:
self.x = x
self.y = y
def __init__(self, x_coordinate: float, y_coordinate: float) -> None:
self.x = x_coordinate
self.y = y_coordinate

@classmethod
def from_points(cls, tail: Point, head: Point) -> Vector:
Expand Down

0 comments on commit 7d3ab75

Please sign in to comment.