<gh_stars>0
# Written by <NAME>
# Example for Compose Methods: Extract Method.
import math

xc1 = 4
yc1 = 4.25

xc2 = 53
yc2 = -5.35
# Calculate the distance between the two circle

def calc_distance(xc1, yc1, xc2, yc2):
    distance = math.sqrt((xc1-xc2)**2 + (yc1 - yc2)**2)
    return distance

distance = calc_distance(xc1, yc1, xc2, yc2)
print('distance', distance)


# *** somewhere else in your program ***
xa = -36
ya = 97

xb = .34
yb = .91
# calcualte the length of vector AB vector which is a vector between A and B points.

def calc_vector_length(xa, ya, xb, yb):
    length = math.sqrt((xa-xb)*(xa-xb) + (ya-yb)*(ya-yb))
    return length

length = calc_vector_length(xa, ya, xb, yb)
print('length', length)

# Written by <NAME>
# Example for Compose Methods: Extract Method.
import math

xc1 = 4
yc1 = 4.25

xc2 = 53
yc2 = -5.35
# Calculate the distance between the two circle

def calc_distance(xc1, yc1, xc2, yc2):
    distance = math.sqrt((xc1-xc2)**2 + (yc1 - yc2)**2)
    return distance

distance = calc_distance(xc1, yc1, xc2, yc2)
print('distance', distance)


# *** somewhere else in your program ***
xa = -36
ya = 97

xb = .34
yb = .91
# calcualte the length of vector AB vector which is a vector between A and B points.

def calc_vector_length(xa, ya, xb, yb):
    length = math.sqrt((xa-xb)*(xa-xb) + (ya-yb)*(ya-yb))
    return length

length = calc_vector_length(xa, ya, xb, yb)
print('length', length)
# Written by <NAME> # Example for Compose Methods: Extract Method. # Calculate the distance between the two circle # *** somewhere else in your program *** # calcualte the length of vector AB vector which is a vector between A and B points.