pfc-geometry 0.1.3__tar.gz → 0.1.4__tar.gz
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.
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/PKG-INFO +4 -1
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/geometry/quaternion.py +12 -2
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/pfc_geometry.egg-info/PKG-INFO +4 -1
- pfc_geometry-0.1.4/pfc_geometry.egg-info/top_level.txt +1 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/setup.cfg +1 -1
- pfc_geometry-0.1.3/pfc_geometry.egg-info/top_level.txt +0 -1
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/LICENSE +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/README.md +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/geometry/__init__.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/geometry/base.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/geometry/coordinate_frame.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/geometry/gps.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/geometry/mass.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/geometry/point.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/geometry/testing.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/geometry/transformation.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/pfc_geometry.egg-info/SOURCES.txt +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/pfc_geometry.egg-info/dependency_links.txt +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/pfc_geometry.egg-info/requires.txt +1 -1
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/setup.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/tests/test_base.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/tests/test_coord.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/tests/test_gps.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/tests/test_mass.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/tests/test_point.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/tests/test_quaternion.py +0 -0
- {pfc_geometry-0.1.3 → pfc_geometry-0.1.4}/tests/test_transform.py +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pfc_geometry
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: A package for handling 3D geometry with a nice interface
|
|
5
5
|
Home-page: https://github.com/PyFlightCoach/geometry
|
|
6
6
|
Author: Thomas David
|
|
7
7
|
Author-email: thomasdavid0@gmail.com
|
|
8
|
+
License: UNKNOWN
|
|
9
|
+
Platform: UNKNOWN
|
|
8
10
|
Description-Content-Type: text/markdown
|
|
9
11
|
License-File: LICENSE
|
|
10
12
|
|
|
@@ -22,3 +24,4 @@ Many convenience methods and constructors are available. Documentation is limite
|
|
|
22
24
|
now available on pypi:
|
|
23
25
|
|
|
24
26
|
pip install pfc-geometry
|
|
27
|
+
|
|
@@ -158,11 +158,21 @@ class Quaternion(Base):
|
|
|
158
158
|
wdash = qdot * q.conjugate()
|
|
159
159
|
return wdash.norm().to_axis_angle()
|
|
160
160
|
|
|
161
|
+
@staticmethod
|
|
162
|
+
def _axis_rates(q: Quaternion, qdot: Quaternion) -> Point:
|
|
163
|
+
wdash = qdot * q.conjugate()
|
|
164
|
+
return wdash.norm()._to_axis_angle()
|
|
165
|
+
|
|
161
166
|
@staticmethod
|
|
162
167
|
def body_axis_rates(q: Quaternion, qdot: Quaternion) -> Point:
|
|
163
168
|
wdash = q.conjugate() * qdot
|
|
164
169
|
return wdash.norm().to_axis_angle()
|
|
165
170
|
|
|
171
|
+
@staticmethod
|
|
172
|
+
def _body_axis_rates(q: Quaternion, qdot: Quaternion) -> Point:
|
|
173
|
+
wdash = q.conjugate() * qdot
|
|
174
|
+
return wdash.norm()._to_axis_angle()
|
|
175
|
+
|
|
166
176
|
def rotate(self, rate: Point) -> Quaternion:
|
|
167
177
|
return (Quaternion.from_axis_angle(rate) * self).norm()
|
|
168
178
|
|
|
@@ -174,7 +184,7 @@ class Quaternion(Base):
|
|
|
174
184
|
assert len(dt) == len(self)
|
|
175
185
|
dt = dt * len(dt) / (len(dt) - 1)
|
|
176
186
|
|
|
177
|
-
ps = Quaternion.
|
|
187
|
+
ps = Quaternion._axis_rates(
|
|
178
188
|
Quaternion(self.data[:-1, :]),
|
|
179
189
|
Quaternion(self.data[1:, :])
|
|
180
190
|
) / dt[:-1]
|
|
@@ -185,7 +195,7 @@ class Quaternion(Base):
|
|
|
185
195
|
assert len(dt) == len(self)
|
|
186
196
|
dt = dt * len(dt) / (len(dt) - 1)
|
|
187
197
|
|
|
188
|
-
ps = Quaternion.
|
|
198
|
+
ps = Quaternion._body_axis_rates(
|
|
189
199
|
Quaternion(self.data[:-1, :]),
|
|
190
200
|
Quaternion(self.data[1:, :])
|
|
191
201
|
) / dt[:-1]
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pfc-geometry
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: A package for handling 3D geometry with a nice interface
|
|
5
5
|
Home-page: https://github.com/PyFlightCoach/geometry
|
|
6
6
|
Author: Thomas David
|
|
7
7
|
Author-email: thomasdavid0@gmail.com
|
|
8
|
+
License: UNKNOWN
|
|
9
|
+
Platform: UNKNOWN
|
|
8
10
|
Description-Content-Type: text/markdown
|
|
9
11
|
License-File: LICENSE
|
|
10
12
|
|
|
@@ -22,3 +24,4 @@ Many convenience methods and constructors are available. Documentation is limite
|
|
|
22
24
|
now available on pypi:
|
|
23
25
|
|
|
24
26
|
pip install pfc-geometry
|
|
27
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -5,7 +5,7 @@ author_email = thomasdavid0@gmail.com
|
|
|
5
5
|
description = A package for handling 3D geometry with a nice interface
|
|
6
6
|
long_description = file: README.md
|
|
7
7
|
long_description_content_type = text/markdown
|
|
8
|
-
version = 0.1.
|
|
8
|
+
version = 0.1.4
|
|
9
9
|
url = https://github.com/PyFlightCoach/geometry
|
|
10
10
|
|
|
11
11
|
[options]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
geometry
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|