Select to view content in your preferred language

use arcpy to describe a curve

3973
2
04-18-2013 06:32 AM
CarlSunderman
Frequent Contributor
Is it possible to use arcpy to give the properties of a curve?
Tags (2)
0 Kudos
2 Replies
CarlSunderman
Frequent Contributor

To answer my own questions

def calculateRadius(x1,y1,x2,y2): 
    radius = (( x2 - x1 )^2 + ( y2 - y1 )^2)^0.5
    return radius 
print calculateRadius(x1, y1, x2, y2) 
0 Kudos
DarrenWiens2
MVP Alum

If you're using python, I think you mean:

def calculateRadius(x1,y1,x2,y2): 
   radius = (( x2 - x1 )**2 + ( y2 - y1 )**2)**0.5 
   return radius 
print calculateRadius(x1, y1, x2, y2)
0 Kudos