2023-04-27 13:59:37 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
from pydantic import BaseModel
|
2023-04-27 13:59:37 -07:00
|
|
|
|
|
|
|
|
2023-11-29 00:39:14 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
class Point2d(BaseModel):
|
|
|
|
"""A point in 2D space"""
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
x: float
|
2023-04-27 13:59:37 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
y: float
|