pfc-geometry 0.2.4__tar.gz → 0.2.5__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.
Files changed (27) hide show
  1. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/PKG-INFO +1 -2
  2. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/geometry/point.py +3 -5
  3. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/pfc_geometry.egg-info/PKG-INFO +1 -2
  4. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/pfc_geometry.egg-info/requires.txt +0 -1
  5. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/setup.cfg +1 -2
  6. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/LICENSE +0 -0
  7. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/README.md +0 -0
  8. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/geometry/__init__.py +0 -0
  9. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/geometry/base.py +0 -0
  10. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/geometry/coordinate_frame.py +0 -0
  11. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/geometry/gps.py +0 -0
  12. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/geometry/mass.py +0 -0
  13. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/geometry/quaternion.py +0 -0
  14. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/geometry/testing.py +0 -0
  15. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/geometry/time.py +0 -0
  16. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/geometry/transformation.py +0 -0
  17. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/pfc_geometry.egg-info/SOURCES.txt +0 -0
  18. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/pfc_geometry.egg-info/dependency_links.txt +0 -0
  19. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/pfc_geometry.egg-info/top_level.txt +0 -0
  20. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/setup.py +0 -0
  21. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/tests/test_base.py +0 -0
  22. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/tests/test_coord.py +0 -0
  23. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/tests/test_gps.py +0 -0
  24. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/tests/test_mass.py +0 -0
  25. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/tests/test_point.py +0 -0
  26. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/tests/test_quaternion.py +0 -0
  27. {pfc_geometry-0.2.4 → pfc_geometry-0.2.5}/tests/test_transform.py +0 -0
@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pfc_geometry
3
- Version: 0.2.4
3
+ Version: 0.2.5
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
8
  Description-Content-Type: text/markdown
9
9
  License-File: LICENSE
10
- Requires-Dist: setuptools
11
10
  Requires-Dist: numpy
12
11
  Requires-Dist: pandas
13
12
 
@@ -13,7 +13,6 @@ from __future__ import annotations
13
13
  from .base import Base
14
14
  import numpy as np
15
15
  import pandas as pd
16
- from typing import List
17
16
  from warnings import warn
18
17
 
19
18
 
@@ -56,6 +55,9 @@ class Point(Base):
56
55
  def angles(self, p2):
57
56
  return (self.cross(p2) / (abs(self) * abs(p2))).arcsin
58
57
 
58
+ def planar_angles(self):
59
+ return Point(np.arctan2(self.y, self.z), np.arctan2(self.z, self.x), np.arctan2(self.x, self.y))
60
+
59
61
  def angle(self, p2):
60
62
  return abs(Point.angles(self, p2))
61
63
 
@@ -172,10 +174,6 @@ def min_angle_between(p1: Point, p2: Point):
172
174
  angle = angle_between(p1, p2) % np.pi
173
175
  return min(angle, np.pi - angle)
174
176
 
175
- @ppmeth
176
- def angle_between(a: Point, b: Point) -> float:
177
- return np.arccos(cos_angle_between(a, b))
178
-
179
177
  def arbitrary_perpendicular(v: Point) -> Point:
180
178
  return Point(-v.y, v.x, 0).unit()
181
179
 
@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pfc_geometry
3
- Version: 0.2.4
3
+ Version: 0.2.5
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
8
  Description-Content-Type: text/markdown
9
9
  License-File: LICENSE
10
- Requires-Dist: setuptools
11
10
  Requires-Dist: numpy
12
11
  Requires-Dist: pandas
13
12
 
@@ -1,3 +1,2 @@
1
- setuptools
2
1
  numpy
3
2
  pandas
@@ -5,12 +5,11 @@ 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.2.4
8
+ version = 0.2.5
9
9
  url = https://github.com/PyFlightCoach/geometry
10
10
 
11
11
  [options]
12
12
  install_requires =
13
- setuptools
14
13
  numpy
15
14
  pandas
16
15
 
File without changes
File without changes
File without changes