2023-07-07 19:22:51 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
from pydantic import BaseModel
|
2023-07-07 19:22:51 -07:00
|
|
|
|
|
|
|
from ..models.axis_direction_pair import AxisDirectionPair
|
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
class System(BaseModel):
|
2023-11-27 16:01:20 -08:00
|
|
|
"""Co-ordinate system definition.
|
2023-07-07 19:22:51 -07:00
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
The `up` axis must be orthogonal to the `forward` axis.
|
2023-07-07 19:22:51 -07:00
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
See [cglearn.eu] for background reading.
|
2023-07-07 19:22:51 -07:00
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
[cglearn.eu](https://cglearn.eu/pub/computer-graphics/introduction-to-geometry#material-coordinate-systems-1)
|
2023-11-28 23:50:50 -08:00
|
|
|
"""
|
2023-07-07 19:22:51 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
forward: AxisDirectionPair
|
2023-07-07 19:22:51 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
up: AxisDirectionPair
|