Changeset 732 for trunk/RBRapier/RBRapier/Tools/Vector.py
- Timestamp:
- 10/28/03 18:10:04 (5 years ago)
- Files:
-
- trunk/RBRapier/RBRapier/Tools/Vector.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBRapier/RBRapier/Tools/Vector.py
r703 r732 24 24 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25 25 26 import math 26 27 import Numeric 27 28 from RBFoundation.IndexedProperty import IndexedProperty … … 31 32 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 33 33 _rad2deg = 180.0/Numeric.pi34 _deg2rad = Numeric.pi/180.035 34 _NumericType = Numeric.Float32 36 35 … … 288 287 289 288 def DeltaAngle(self, other): 290 return _rad2deg * self.DeltaRadians(other)289 return math.degrees(self.DeltaRadians(other)) 291 290 292 291 def DeltaRadians(self, other):
