pfc-geometry 0.2.6__py3-none-any.whl → 0.2.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- geometry/transformation.py +2 -2
- {pfc_geometry-0.2.6.dist-info → pfc_geometry-0.2.8.dist-info}/METADATA +4 -2
- {pfc_geometry-0.2.6.dist-info → pfc_geometry-0.2.8.dist-info}/RECORD +6 -6
- {pfc_geometry-0.2.6.dist-info → pfc_geometry-0.2.8.dist-info}/WHEEL +1 -1
- {pfc_geometry-0.2.6.dist-info → pfc_geometry-0.2.8.dist-info}/LICENSE +0 -0
- {pfc_geometry-0.2.6.dist-info → pfc_geometry-0.2.8.dist-info}/top_level.txt +0 -0
geometry/transformation.py
CHANGED
|
@@ -27,11 +27,11 @@ class Transformation(Base):
|
|
|
27
27
|
args = np.concatenate([args[0].data,Q0().data],axis=1)
|
|
28
28
|
elif isinstance(args[0], Quaternion):
|
|
29
29
|
args = np.concatenate([P0().data,args[0].data],axis=1)
|
|
30
|
-
|
|
30
|
+
elif len(args) == 2:
|
|
31
31
|
_q = args[0] if isinstance(args[0], Quaternion) else args[1]
|
|
32
32
|
_p = args[0] if isinstance(args[0], Point) else args[1]
|
|
33
33
|
assert isinstance(_q, Quaternion) and isinstance(_p, Point), f'expected a Point and a Quaternion, got a {_p.__class__.__name__} and a {_q.__class__.__name__}'
|
|
34
|
-
args = np.concatenate([_p.data, _q.data], axis=1)
|
|
34
|
+
args = [np.concatenate([_p.data, _q.data], axis=1)]
|
|
35
35
|
super().__init__(*args, **kwargs)
|
|
36
36
|
self.p = Point(self.data[:,:3])
|
|
37
37
|
self.q = Quaternion(self.data[:,3:])
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.2.
|
|
2
|
+
Name: pfc-geometry
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Summary: A package for handling 3D geometry with a nice interface
|
|
5
5
|
Author-email: Thomas David <thomasdavid0@gmail.com>
|
|
6
6
|
License: GNU GPL v3
|
|
7
|
+
Project-URL: Homepage, https://github.com/PyFlightCoach/geometry
|
|
8
|
+
Project-URL: Documentation, https://pfcdocumentation.readthedocs.io/pyflightcoach/geometry.html
|
|
7
9
|
Classifier: Programming Language :: Python :: 3
|
|
8
10
|
Requires-Python: >=3.12
|
|
9
11
|
Description-Content-Type: text/markdown
|
|
@@ -7,9 +7,9 @@ geometry/point.py,sha256=tMpNwVIrYBgwxG4Oplj6SWWLwIaxnTSKyEwtw-sY_1o,5031
|
|
|
7
7
|
geometry/quaternion.py,sha256=rw_9Fx9uKMMuGAWJjH1vU-iZzA15Vbn3HyzS4qV3oxY,9367
|
|
8
8
|
geometry/testing.py,sha256=o8yMBAdU5Vy0EspBYaof4fPGgRSFZhRDhzBjRPsLd0M,375
|
|
9
9
|
geometry/time.py,sha256=NdzVWdL7F3HpJb4MXYJ0uPHvgHqipVMTDTR-UVNx_wc,995
|
|
10
|
-
geometry/transformation.py,sha256=
|
|
11
|
-
pfc_geometry-0.2.
|
|
12
|
-
pfc_geometry-0.2.
|
|
13
|
-
pfc_geometry-0.2.
|
|
14
|
-
pfc_geometry-0.2.
|
|
15
|
-
pfc_geometry-0.2.
|
|
10
|
+
geometry/transformation.py,sha256=eunEC924zPBLhaVSEWE-IClrRfitvUKjSdOTaa2tdDQ,4705
|
|
11
|
+
pfc_geometry-0.2.8.dist-info/LICENSE,sha256=z72U6pv-bQgJ_Svr4uCXnMjemsp38aSerhHEdEAOMJ4,7632
|
|
12
|
+
pfc_geometry-0.2.8.dist-info/METADATA,sha256=6Ew3oSqvnbBF6NpVIyh0bnPfRv-Bvcd7fJM9wZ90V8k,1978
|
|
13
|
+
pfc_geometry-0.2.8.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
|
14
|
+
pfc_geometry-0.2.8.dist-info/top_level.txt,sha256=RWbWhWYclEM-OFtXLCB4eLv-jxNnlJB-NPC2YM587Fo,9
|
|
15
|
+
pfc_geometry-0.2.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|