Created package and relative imports
This commit is contained in:
parent
a11338ac1d
commit
73dd05ca0f
2
Angle.py
2
Angle.py
@ -3,7 +3,7 @@
|
||||
# file, You can obtain one at https ://mozilla.org/MPL/2.0/.
|
||||
|
||||
import math
|
||||
from Float import *
|
||||
from .Float import *
|
||||
|
||||
# This is in fact AngleSingle
|
||||
class Angle:
|
||||
|
@ -1,6 +1,6 @@
|
||||
import math
|
||||
from Angle import Angle
|
||||
from Vector import Vector3
|
||||
from .Angle import Angle
|
||||
from .Vector import Vector3
|
||||
|
||||
class Direction:
|
||||
"""! A direction using angles
|
||||
|
@ -1,8 +1,8 @@
|
||||
import math
|
||||
|
||||
from Vector import Vector3
|
||||
from Angle import Angle
|
||||
from Direction import Direction
|
||||
from .Vector import Vector3
|
||||
from .Angle import Angle
|
||||
from .Direction import Direction
|
||||
|
||||
Deg2Rad = (math.pi * 2) / 360
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import math
|
||||
from Direction import *
|
||||
from Vector import *
|
||||
from .Direction import *
|
||||
from .Vector import *
|
||||
|
||||
class Polar:
|
||||
"""! A polar 2D vector
|
||||
|
@ -1,5 +1,5 @@
|
||||
from Direction import *
|
||||
from Quaternion import *
|
||||
from .Direction import *
|
||||
from .Quaternion import *
|
||||
|
||||
class SwingTwist:
|
||||
"""A rotation using swing and twist angle components"""
|
||||
|
@ -1,6 +1,6 @@
|
||||
import math
|
||||
|
||||
from Angle import *
|
||||
from .Angle import *
|
||||
|
||||
epsilon = 1E-05
|
||||
|
||||
|
0
__init__.py
Normal file
0
__init__.py
Normal file
@ -316,7 +316,7 @@ class SphericalTest(unittest.TestCase):
|
||||
|
||||
v2 = Spherical.Degrees(1, 45, 0)
|
||||
r = v1 - v2
|
||||
assert(r == Spherical(3, 45, 0))
|
||||
assert(r == Spherical.Degrees(3, 45, 0))
|
||||
|
||||
v2 = Spherical.Degrees(1, -135, 0)
|
||||
r = v1 - v2
|
||||
|
Loading…
x
Reference in New Issue
Block a user