* YOYO NEW API SPEC! * new files Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Greg Sweeney <greg@kittycad.io> Co-authored-by: Jess Frazelle <github@jessfraz.com>
19 lines
380 B
Python
19 lines
380 B
Python
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from ..models.angle import Angle
|
|
from ..models.origin_type import OriginType
|
|
from ..models.point3d import Point3d
|
|
|
|
|
|
class Rotation(BaseModel):
|
|
"""A rotation defined by an axis, origin of rotation, and an angle."""
|
|
|
|
angle: Angle
|
|
|
|
axis: Point3d
|
|
|
|
origin: OriginType
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|