-
Notifications
You must be signed in to change notification settings - Fork 3
Ellipse
Jonathan edited this page Apr 9, 2024
·
1 revision
Represents an ellipse defined by its two radii and the plane it lies in.
The Ellipse class describes an ellipse through its major and minor radii and the plane it occupies.
- `firstRadius` (float): The first (major) radius of the ellipse.
- `secondRadius` (float): The second (minor) radius of the ellipse.
- `plane` (Plane): The plane in which the ellipse lies.
-
__id__(self)
: Returns the ID of the Ellipse. -
__str__(self) -> str
: Generates a string representation of the Ellipse object.
Returns the ID of the Ellipse.
str
: The ID of the Ellipse in the format "id:{self.id}".
Generates a string representation of the Ellipse object.
str
: A string that represents the Ellipse object.
ellipse = Ellipse(firstRadius, secondRadius, plane)
print(ellipse)
# Output: Ellipse(...)