Show
Ignore:
Timestamp:
10/28/03 18:10:04 (5 years ago)
Author:
sholloway
Message:

*** empty log message ***

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBRapier/RBRapier/Tools/Geometry/Curves.py

    r692 r732  
    33#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    44 
     5import math 
    56import Numeric 
    67 
     
    910#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    1011 
    11 _rad2deg = 180.0/Numeric.pi 
    12 _deg2rad = Numeric.pi/180.0 
    1312_2pi = 2 * Numeric.pi 
    1413 
     
    182181        """ 
    183182        if inDegrees: 
    184             xrotation *= _deg2rad 
     183            xrotation = math.radians(xrotation) 
    185184        fromxy = Numeric.asarray(fromxy, klass.NumericType) 
    186185        toxy = Numeric.asarray(toxy, klass.NumericType) 
     
    244243 
    245244    def SetSweepAngles(self, startangle, endangle): 
    246         self.SetSweep(_deg2rad*startangle, _deg2rad*endangle
     245        self.SetSweep(math.radians(startangle), math.radians(endangle)
    247246    def SetSweep(self, startradians, endradians): 
    248247        self.sweep = [startradians, endradians] 
     
    251250 
    252251    def SetXRotationAngle(self, xrotationAngle): 
    253         self.SetXRotation(_deg2rad*xrotationAngle
     252        self.SetXRotation(math.radians(xrotationAngle)
    254253    def SetXRotation(self, xrotationRadians): 
    255254        self.xrotation = xrotationRadians