Ejemplo n.º 1
0
 def _loads(self, contents: Mapping[str, Mapping[str, float]]) -> None:
     self._translation = Vector3D.loads(contents["translation"])
     rotation_contents = contents["rotation"]
     self._rotation = Quaternion(
         rotation_contents["w"],
         rotation_contents["x"],
         rotation_contents["y"],
         rotation_contents["z"],
     )
Ejemplo n.º 2
0
 def _loads(self, contents: Mapping[str, Mapping[str, float]]) -> None:
     self._size = Vector3D.loads(contents["size"])
     self._transform = Transform3D.loads(contents)